Hi.
I am trying to get JSP example "send mail" working.
And what I did found. I couldn't get parameter "mail.smtp.host".
I did change this value (in server.xml file), restart server, and nothing changed,
example
trying to send mail thru localhost.
This is code from JSP Send mail example:
Context initCtx = new InitialContext();
// here initCtx is empty there are no any parameters.
Context envCtx = (Context) initCtx.lookup("java:comp/env");
// after this I am getting exception
Session session = (Session) envCtx.lookup("mail/Session");
Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>