[Zope] <dtml-sendmail> problems

Phil Harris phil.harris@zope.co.uk
Sun, 23 Jan 2000 23:10:30 -0000


Wouldnt you also need to quote the <> on the address line:

i.e (untested).

To: <dtml-var firstname> <dtml-var lastname> &lt;<dtml-var toemail>&gt;

HTH

Phil
phil.harris@zope.co.uk


----- Original Message ----- 
From: "Stephen Pitts" <smpitts@midsouth.rr.com>
To: <zope@zope.org>
Sent: Sunday, January 23, 2000 9:09 PM
Subject: [Zope] <dtml-sendmail> problems


> The following code generates an "SMTP Error 503: No receipients
> specified".
> <dtml-sendmail mailhost=mailhost>
> From: "<dtml-var from>"
> To: "<dtml-var firstname> <dtml-var lastname> <<dtml-var toemail>>"
> Subject: <dtml-var subject>
> <dtml-var messagebody>
> </dtml-sendmail>
> 
> The variables are set as follows:
> from - "Stephen Pitts <smpitts@midsouth.rr.com>"
> firstname - "Stephen"
> lastname - "Pitts"
> toemail - "smpitts@midsouth.rr.com"
> subject - "Stuff"
> messagebody - "Enter your message body here"
> 
> How can I fix the code so it sends a valid email? Does Zope not support
> To/From fields of the type "name email@address.com"?
> -- 
> Stephen Pitts
> smpitts@midsouth.rr.com
> webmaster - http://www.mschess.org
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>