Hello!

My context.xml looks like: 

[CODE]   
Resource name="mail/Session"
     auth="Container"
     type="javax.mail.Session"
     mail.store.protocol="pop3"
     mail.pop3.host="mail.server"
     mail.transport.protocol="smtp"
     mail.smtp.host="mail.server"
     mail.smtp.port="portNo"
     mail.smtp.auth="true"
     mail.smtp.user="[EMAIL PROTECTED]"
     password="mypass" 
[/CODE]

I want to put FROM also in this Context. For now it's hard-coded:
[CODE]sender.setFrom("[EMAIL PROTECTED]"); 
[/CODE]

I'm picking values with:            
[CODE]
Object sess = ctx.lookup("mail/Session");
session = (javax.mail.Session) sess;
[/CODE]

How can i set the FROM value with contex.xml?


Regards
-- 
View this message in context: 
http://www.nabble.com/Set-and-pick-FROM-in-context.xml-tp20938349p20938349.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to