[Zope] <dtml-sendmail> problems
Sam Gendler
sgendler@impossible.com
Sun, 23 Jan 2000 20:11:25 -0800
Stephen Pitts wrote:
> 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"?
> --
The first problem that jumps out at me is that you MUST have a blank line after
the final 'header, ' which is the standard mime method to signal the end of
headers.
--sam