Python 2.7 has reached end of support and will be deprecated on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7 applications, even if your organization previously used an organization policy to re-enable deployments of legacy runtimes. Your existing Python 2.7 applications will continue to run and receive traffic after their deprecation date. We recommend that you migrate to the latest supported version of Python.

google.appengine.api.mail_errors module

Summary

Exceptions raised by the Mail API.

Contents

exception google.appengine.api.mail_errors.BadRequestErrorsource

Bases: google.appengine.api.mail_errors.Error

The email is not valid.

exception google.appengine.api.mail_errors.Errorsource

Bases: exceptions.Exception

Base Mail error type.

exception google.appengine.api.mail_errors.InvalidAttachmentTypeErrorsource

Bases: google.appengine.api.mail_errors.Error

The file type of the attachment is invalid.

exception google.appengine.api.mail_errors.InvalidEmailErrorsource

Bases: google.appengine.api.mail_errors.Error

The specified email is invalid.

exception google.appengine.api.mail_errors.InvalidHeaderNameErrorsource

Bases: google.appengine.api.mail_errors.Error

The header name is invalid.

exception google.appengine.api.mail_errors.InvalidSenderErrorsource

Bases: google.appengine.api.mail_errors.Error

The sender is not permitted to send mail for this application.

exception google.appengine.api.mail_errors.MissingBodyErrorsource

Bases: google.appengine.api.mail_errors.Error

A body was not specified in the message.

exception google.appengine.api.mail_errors.MissingRecipientsErrorsource

Bases: google.appengine.api.mail_errors.Error

A recipient was not specified in the message.

exception google.appengine.api.mail_errors.MissingSenderErrorsource

Bases: google.appengine.api.mail_errors.Error

A sender was not specified in the message.

exception google.appengine.api.mail_errors.MissingSubjectErrorsource

Bases: google.appengine.api.mail_errors.Error

The subject was not specified in the message.

exception google.appengine.api.mail_errors.PayloadEncodingErrorsource

Bases: google.appengine.api.mail_errors.Error

The payload encoding is unknown.

exception google.appengine.api.mail_errors.UnknownCharsetErrorsource

Bases: google.appengine.api.mail_errors.PayloadEncodingError

The character set is unknown.

exception google.appengine.api.mail_errors.UnknownEncodingErrorsource

Bases: google.appengine.api.mail_errors.PayloadEncodingError

The encoding is unknown.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月16日 UTC.