On Development Server
When I use Mail API with sendmail using the example as in Sending Mail doc, the recipient has to be pure email address:
cannot be
User <[email protected]>Or sendmail complains:
INFO 2008-10-29 06:57:53,884 mail_stub.py] MailService.SendI think this can be fixed by patching the mail_stub.py.
INFO 2008-10-29 06:57:53,884 mail_stub.py] From: [email protected]
INFO 2008-10-29 06:57:53,885 mail_stub.py] To: User <[email protected]>
INFO 2008-10-29 06:57:53,885 mail_stub.py] Subject: Your account has been approved
INFO 2008-10-29 06:57:53,885 mail_stub.py] Body:
INFO 2008-10-29 06:57:53,885 mail_stub.py] Content-type: text/plain
INFO 2008-10-29 06:57:53,885 mail_stub.py] Data length: 261
/bin/sh: -c: line 0: syntax error near unexpected token `newline'
/bin/sh: -c: line 0: `sendmail User <[email protected]>'
ERROR 2008-10-29 06:57:53,927 mail_stub.py] Error sending mail using sendmail: [Errno 32] Broken pipe
On Production Server
Sender must be:
The sender must be the email address of a registered administrator for the application, or the address of the current signed-in user.
0 comments:
Post a Comment