Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Functions

The google.appengine.api.mail package provides the following functions:

check_email_valid ( email_address , field )

Checks that an email address is valid, and raises an InvalidEmailError exception if it is not. field is the name of the field containing the address, for use in the error message.

invalid_email_reason ( email_address , field )

Returns a string description of why a given email address is invalid, or None if the address is valid. field is the name of the field containing the address, for use in the error message.

invalid_headers_reason ( headers )

Returns a string description of why a given dictionary of headers is invalid, or None if the headers are valid.

is_email_valid ( email_address )

Returns True if email_address is a valid email address. This performs the same check as check_email_valid , but does not raise an exception.

send_mail ( sender , to , subject , body , ** kw )

Creates and sends a single email message. sender , to , subject , and body are required fields of the message. Additional fields can be specified as keyword arguments. For the list of possible fields, Email Message Fields .

send_mail_to_admins ( sender , subject , body , ** kw )

Creates and sends a single email message addressed to all administrators of the application. sender , subject , and body are required fields of the message. Additional fields can be specified as keyword arguments. For the list of possible fields, Email Message Fields .

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.