How do I send an email to GAE on behalf of yahoo, hotmail or .edu?

In GAE, a non-gmail user can create a Google account using non-gmail email and log in to the Google app. However, sending from this email does not work all the time.

For example, suppose foobar@yahoo.com creates a google account and they sign up. The GAE should then be able to send email to foobar@yahoo.com during a user request.

The problem is that this does not work for Yahoo and others email accounts. In my experience, only the following users can be sent on their behalf:

  • Currently logged in gmail users
  • Currently logged in users with emails that run in Google apps
  • Administrators

However, you cannot send email on behalf of users with the following email address:

  • Yahoo and hotmail users
  • .gov or .mil
  • most .edu users, although I think some schools use Google apps and they work.

If I send from these email addresses, I get the following error:

   message.send();
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py", line 799, in send
    raise ERROR_MAP[e.application_error](e.error_detail)
InvalidSenderError: Unauthorized sender

Did I miss something?

I know that there are similar questions on this topic, but I do not think that they nail them.

+3
source share
3 answers

.

, 8 , : DKIM, SPF...

, ()/ , .


Update:

Google

Google (, hotmail, yahoo, *.edu ..). , , , . - " " , Google, .

Google . Google Gmail.

Google

Google Apps "on" , , Google.

Google - "", , . Google .

Google " ". . . mail envelope, (, ) . sender header. , , from header , , , Google Google.

- -, , SMTP-.

SMTP-

, - Google SMTP-, Google . "" .


GAE . , , - Google, , API.

Google "" , . ; "". , .

, .

, , , , , , - , .

+3

, Google - . 1,5 ( ), 2011-05-03 , , Yahoo .

-Google (-).

+2

foobar@yahoo.com Google , Gmail, Yahoo. Hotmail. .gov,.mil .edu, TLD. Google Apps, , .

Please note that when sending mail you can specify the address "Reply to address" . It can be any email address, so if you use the answer to foobar@yahoo.com in the outgoing mail, and the recipient's answer is the answer, it should be an address that is filled in as the recipient.

+1
source

All Articles