You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Sparkes <pe...@didm.co.uk> on 2007/10/09 08:41:48 UTC

Re: AW: SendMail

Thanks Merico,

I am out today, will work on it tonight.

Thanks again

Peter
> Hi Peter
>
> I am using sendmail as cocoon action in the following way and it works fine.
> My experience is that it is important to have valid parameter values. 
>
> <map:match type="wildcard" pattern="sendmail/*">
> 	<map:act type="sendmail"> 
> 		<map:parameter name="smtp-host"
> value="{global:smtpHost-{1}}"/>
> 		<map:parameter name="smtp-user"
> value="{global:smtpUser-{1}}"/>
> 		<map:parameter name="smtp-password"
> value="{global:smtpPwd-{1}}"/>
> 				    
> 		<map:parameter name="from" value="{request-param:from}"/>
> 		<map:parameter name="to" value="{request-param:to}"/>
> 		<!--<map:parameter name="cc"
> value="{request-param:email}"/>-->
> 		<!--<map:parameter name="bcc"
> value="censor@somewhere.com"/>-->
> 		<map:parameter name="subject"
> value="{request-param:subject}"/>
> 				    
> 		<!--<map:parameter name="body" value="body"/>-->
> 		<map:parameter name="src" value="cocoon:/processMailTpl"/>
> 		<!--<map:parameter name="srcMimeType"
> value="{request-param:srcMimeType}"/>-->
> 		<!--<map:parameter name="charset"
> value="{request-param:charset}"/>-->
> 		<!--<map:parameter name="attachments" value="uploaded_file1
> context://welcome.xml"/>-->
> 		<map:redirect-to uri="{request-param:confirmTplPath}"/>
> 	</map:act>
> 	<map:redirect-to uri="{request-param:errorTplPath}"/>
> </map:match>
> <map:match type="wildcard" pattern="processMailTpl">
> 	<map:read type="resource" mime-type="text/plain"
> src="{request-param:mailTplPath}"/>
> </map:match>
>
> Please also note that you have to include the following block in your
> local.blocks.properties for a cocoon build that includes sendmail.
> - include.block.asciiart=true
> - include.block.mail=true
>
> Hope this helps ... Raffaele
>
>   
>> -----Ursprüngliche Nachricht-----
>> Von: Peter Sparkes [mailto:peter@didm.co.uk]
>> Gesendet: Dienstag, 9. Oktober 2007 07:53
>> An: users@cocoon.apache.org
>> Betreff: SendMail
>>
>> Hi
>>
>> I have put the Sun mail.jar and activation.jar in my WEB-INF/lib and
>> removed removed geronimo-spec-javamail-*.jar and
>> geronimo-spec-activation-*.jar from WEB-INF/lib.
>>
>> However I still get the error message "Could not connect to SMTP host:
>> localhost, port: 25"
>>
>> I tried in addition removing geronimo-spec-jms-1.1-rc3.jar  and
>> geronimo-spec-jta-1.0.1B-rc3.jar from WEB-INF/lib, but then cocoon would
>> not restart.
>>
>> I am using Cocoon 2.1.10 with Tomcat 5.5
>>
>> Please How do I get SendMail  to work
>>
>> Thanks
>>
>> Peter
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>     
>
>
>   
>> -----Ursprüngliche Nachricht-----
>> Von: Peter Sparkes [mailto:peter@didm.co.uk]
>> Gesendet: Dienstag, 9. Oktober 2007 07:53
>> An: users@cocoon.apache.org
>> Betreff: SendMail
>>
>> Hi
>>
>> I have put the Sun mail.jar and activation.jar in my WEB-INF/lib and
>> removed removed geronimo-spec-javamail-*.jar and
>> geronimo-spec-activation-*.jar from WEB-INF/lib.
>>
>> However I still get the error message "Could not connect to SMTP host:
>> localhost, port: 25"
>>
>> I tried in addition removing geronimo-spec-jms-1.1-rc3.jar  and
>> geronimo-spec-jta-1.0.1B-rc3.jar from WEB-INF/lib, but then cocoon would
>> not restart.
>>
>> I am using Cocoon 2.1.10 with Tomcat 5.5
>>
>> Please How do I get SendMail  to work
>>
>> Thanks
>>
>> Peter
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org