You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mumtaz Alam <mu...@em-t.com> on 2003/04/07 15:02:36 UTC

Some Help on Using Authentication With Java Mail JNDI Sessions

 
-------Original Message-------
 
From: Mumtaz Alam
Date: Monday, April 07, 2003 04:18:05 PM
To: craigmcc@apache.org
Subject: How To Specify Authentication With Java Mail Sessions
 
Hi 
I am trying to use Java Mail Sessions via Resource Factory in Tomcat 4.0.1 .
I have the folowing defined in my server.xml and web.xml file
 
<Resource name="mail/session" auth="Container"
type="javax.mail.Session"/>
    <ResourceParams name="mail/session">
      <parameter>
        <name>mail.smtp.host</name>
        <value>abc.com</value>
      </parameter>
    </ResourceParams>

But my SMTP mail provider uses Authentication .
So How DO i use this java mail session with authentication.
What additional parameters I have to provide in my xml file and how
 
Any Help apprecaited
Thanks
Mumtaz