<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
Hi, You have to put an empty line before the message body, and I don't know those quotation marks are needed or not. It works for me if I put a simple email address without quotation marks after To: Arpad 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"? -- 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 )
In article <20000123150930.A9278@magellan.midsouth.rr.com>, Stephen Pitts <smpitts@midsouth.rr.com> writes
To: "<dtml-var firstname> <dtml-var lastname> <<dtml-var toemail>>"
Shouldn't this be To: "<dtml-var firstname> <dtml-var lastname>" <<dtml-var toemail>> ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin
On Sun, Jan 23, 2000 at 03:09:30PM -0600, 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>
Are you sure you don't have to put a blank line between the subject and the body ? good luck Jerome
Wouldnt you also need to quote the <> on the address line: i.e (untested). To: <dtml-var firstname> <dtml-var lastname> <<dtml-var toemail>> 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 )
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
participants (6)
-
Arpad Kiss -
Graham Chiu -
Jerome ALET -
Phil Harris -
Sam Gendler -
Stephen Pitts