[opencms-dev] Email question using opencms
Robert Petermeier
robert2.0 at gmx.de
Tue Apr 4 22:50:27 CEST 2006
twinkle wrote:
[Mail problems]
> <%@ page import="org.opencms.mail.CmsSimpleMail" %>
[...]
> %>
This is bad code. I don't bother to explain why. You should try the
following:
1. You have configured OpenCms to send e-mails, haven't you? If not, do
that. If you have, check the mail configuration (I think it's in
opencms-system.xml but I'm not sure)
2. Write a minimal JSP (no request parameters!) where you just
instantiate CmsSimpleMail and hard-code all the parameters. Send an
e-mail to yourself.
3. Log any exceptions thrown by the underlying OpenCms, commons and Java
mail API classes.
4. Enlightenment.
Bye,
Robert
More information about the opencms-dev
mailing list