• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to re-config "mail.host.smtp","localhost" in tomcat 5.0.28

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I want to re-config "mail.host.smtp","localhost" to "mail.host","Server IP" .I am using tomcat 5.0.28

I added these entries in my server.xml

<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.host</name>
<value>linupca6.hewitt.com</value>
</parameter>
</ResourceParams>

and these in my web.xml which is in my project folder

<resource-ref>
<description>
Resource reference to a factory for javax.mail.Session
instances that may be used for sending electronic mail
messages, preconfigured to connect to the appropriate
SMTP server.
</description>
<res-ref-name>
mail/Session
</res-ref-name>
<res-type>
javax.mail.Session
</res-type>
<res-auth>
Container
</res-auth>
</resource-ref>

But while i try to send a mail It is showing "could not connect to SMTP localhost port 25".

How can cahnge that.I have to connect to mail.host and to my proxy IP.
can anyone help me.

Thanx & regards,
Ashokkumar
[ November 16, 2005: Message edited by: ashok kumar ]
 
ashok kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Anybody can give me some idea's
Regards,
Ashokkumar
reply
    Bookmark Topic Watch Topic
  • New Topic