cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 321...@gmail.com
Subject Re: Issues with SendMailTransformer
Date Thu, 29 Jun 2006 07:38:56 GMT
Thanks for answering.
At the time I copied the error result, I had a different e-mail address in
there and I changed it manually to the one I am using here.
So that wasn't the problem, only my slatternliness....


2006/6/29, Jasha Joachimsthal <j.joachimsthal@hippo.nl>:
>
>
>
> -----Original Message-----
> *From:* kochch@gmail.com [mailto:kochch@gmail.com]*On Behalf Of *
> 321los@gmail.com
> *Sent:* woensdag 28 juni 2006 23:05
> *To:* users@cocoon.apache.org
> *Subject:* Issues with SendMailTransformer
>
> Hello,
>
> my sitemap:
> <map:transformer name="sendmail" src="
> org.apache.cocoon.mail.transformation.SendMailTransformer">
>      <smtphost>smtp.host</smtphost>
>      <smtpuser>user</smtpuser>
>      <smtppassword>password</smtppassword>
>   </map:transformer>
> .
> .
> <map:match pattern="htmlarea-success-pipeline">
>        <map:generate type="jx" src="forms/htmlarea_success.jx"/>
>        <map:transform type="sendmail"/>
>        <map:serialize type="xml"/>
>      </map:match>
>
>
> htmlarea_success.jx:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <document xmlns:email="http://apache.org/cocoon/transformation/sendmail">
>   <email:sendmail>
>     <email:from> cocoon@cocoon.org</email:from>
>     <email:to>#{email}</email:to>
>     <email:subject>#{subject}</email:subject>
>     <email:body>#{data1}</email:body>
>    </email:sendmail>
> </document>
>
>
> I changed the htmlarea example to send mails, when submitting the form.
> But my result looks like that:
>
> <document>
>  <email:result>
>         <email:failure to=" 321los@gmail.com">Invalid
> address</email:failure>
>  </email:result>
> </document>
>
>
>
> [Jasha Joachimsthal]
> It tries to send the mail to <space>321los@gmail.com. Maybe that's the
> problem.
>

Mime
View raw message