开发者

Sending Emails with Python, Google AppEngine [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

sending email with GAE copies sender — how to stop?

I'm using Python with Google's App Engine and I am working on sending emails to users.

I have it so users can respond to posts by emailing them. However, it also, by default, sends a copy of the email to the user. Is it possible to disable this?

This is the code I have:

mail.send_mail( 
   user.email(), # from
   greeting.author.email(), # to 
   'MSUchat: %s is %s - %s' % (user, response.inquiry, greeting.title), # subj
   'You received a response to your posting.\r\n\r\n%s wrote:\r\n\r\n"%s"' % (user, response.content), # body 
)

I only want this email to be sent to the person they are respond开发者_如何学运维ing to, not have it sent to themselves as well.


From Wooble's duplicate:

You can't - App Engine automatically BCCs the sender. If you don't want to receive them, you could use one of your app's incoming email addresses as the sender address.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜