Hello,
i try to use the sendmail action. When the mail is sent without any error,
everything seems to work well. The {status} of the action is success. But
when i use a non exixting EMail, i get an error "Ressource not found" I use
the action like described in the example (on cocoon.apache.org)
<map:match pattern="mail">
<map:act type="sendmail">
<map:parameter name="charset" value="ISO-8859-1"/>
<map:parameter name="smtphost"
value="{global:mailserver}"/>
<map:parameter name="from"
value="{request-param:from}"/>
<map:parameter name="to"
value="{request-param:to}"/>
<map:parameter name="subject"
value="{request-param:subject}"/>
<map:parameter name="body"
value="{request-param:body}"/>
<map:generate src="{status}.xml"/>
<map:serialize type="html"/>
</map:act>
</map:match>
I also create a user-error.xml and server-error.xml document. But when the
Email is unknown, the action has no status. In the sitemap.log i get this
entry:
ERROR (2003-09-18) 14:47.07:234 [sitemap.action.sendmail] (/cocoon/mail)
PoolThread-2/Sendmail: SendmailAction: MessagingException: An error occured
while sending email.
javax.mail.MessagingException: Sending failed;
nested exception is:
class javax.mail.MessagingException: 553 5.1.8 <[EMAIL PROTECTED]>...
Domain of sender address [EMAIL PROTECTED] does not exist
at
org.apache.cocoon.mail.MailMessageSender.send(MailMessageSender.java:319)
at org.apache.cocoon.acting.Sendmail.act(Sendmail.java:234)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:152)
Can anybody help?
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]