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="[EMAIL PROTECTED]"/>-->
<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:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. Oktober 2007 07:53
An: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-----Ursprüngliche Nachricht-----
Von: Peter Sparkes [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. Oktober 2007 07:53
An: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]