python - Sending mail by Unauthorised sender in Google AppEngine -


i've got google appengine python application connected my domain.
want able send emails email, like: mailname@mydomain.com

use sendmail() , set mailobject.sender = "sender@mydomain.com", not work.
made receive function, don't want receive mails here, made

def receive(self, mail):     pass 

in google documentation https://cloud.google.com/appengine/docs/python/mail/receivingmail :

  • any valid email receiving address app (such xxx@app-id.appspotmail.com).
  • any valid email receiving address of domain account, such support@example.com. domain accounts accounts outside of google domain email addresses not end in @gmail.com or @app-id.appspotmail.com.

what should add application in order able send mails?

from https://cloud.google.com/appengine/docs/python/mail/emailmessagefields

sender

the email address of sender, address. sender address must 1 of following types:

  • the address of registered administrator application. can add administrators application using administration console.

  • the address of user current request signed in google account. can determine current user's email address users api. user's account must gmail account, or on domain managed google apps.

  • any valid email receiving address app (such xxx@app-id.appspotmail.com).

this means there no documented way send *@example.org. thought there way if @example.org google apps domain cannot find docs on that.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -