Re: SendMailServlet example & server setup ?
"Dado" <mario_zupan@inet.hr> said:
"Chris Smith" <cdsmith@twu.net> je napisao u poruci interesnoj
grupi:MPG.1f0705c462b866a19896f3@news.altopia.net...
Dado <mario_zupan@inet.hr> wrote:
public void init(ServletConfig config) throws ServletException
{
super.init(config);
// get the SMTP server from the servlet properties
smtpServer = config.getInitParameter("smtpServer");
}
Your code is looking for servlet init parameter smtpServer.
I put:
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session" mail.smtp.host="mail.iskon.hr" />
inside
</Host>
</Engine>
And you're setting something completely else. Please do set the
servlet init parameter smtpServer (this setting goes in web.xml).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)