Cloud Mail 2020 Python Edition

Questions / Feedback?

AmazonSES Class

Properties   Methods   Events   Configuration Settings   Errors  

The AmazonSES class provides a simple interface to Amazon's Simple Email Service (SES).

Syntax

class cloudmail.AmazonSES

Remarks

The AmazonSES component allows you to quickly and easily access Amazon's Simple Email Service (SES) through version 1 of the Amazon SES API. AmazonSES allows you to send both plaintext and HTML e-mails to recipients through your AWS account.

After signing up for AmazonSES you will use the Amazon provided access_key and secret_key to authenticate to Amazon. To send an e-mail set message_html or message_text along with from_, subject, send_to and call send.

Various other administrative methods are also available, such as list_identities, verify_domain, verify_email, and more.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

access_keyThe Access Key Id for the Amazon Web Services account.
attachment_countThe number of records in the Attachment arrays.
attachment_fileThis property contains the path of a file on your system that you would like to send as an attachment with your message.
attachment_nameThis property contains the name of the attachment to be sent.
b_ccA comma separated list of addresses for blind carbon copies (optional).
ccA comma separated list of addresses for carbon copies (optional).
delivery_notification_toEmail address to which to send a delivery notification.
firewall_auto_detectThis property tells the class whether or not to automatically detect and use firewall system settings, if available.
firewall_typeThis property determines the type of firewall to connect through.
firewall_hostThis property contains the name or IP address of firewall (optional).
firewall_passwordThis property contains a password if authentication is to be used when connecting through the firewall.
firewall_portThis property contains the TCP port for the firewall Host .
firewall_userThis property contains a user name if authentication is to be used connecting through a firewall.
from_The email address of the sender (required).
identity_countThe number of records in the Identity arrays.
identity_attributes_typeSpecifies the type of attribute.
identity_nameThe current identity name.
identity_notification_bounce_topicThe Amazon Simple Notification Service (SNS) topic to which Amazon will publish bounce notifications.
identity_notification_complaint_topicThe Amazon Simple Notification Service (SNS) topic to which Amazon will publish complaint notifications.
identity_notification_forwarding_enabledSpecifies whether or not Amazon will forward feedback as email.
identity_verification_statusThe current verification status of the identity.
identity_verification_tokenThe verification token for the domain.
identity_markerThe offset marker used to navigate paged results.
idleThe current status of the class.
image_countThe number of records in the Image arrays.
image_dataThis property optionally specifies the image data.
image_fileThis property contains the name of the image files embedded into the HTML message.
image_idThis property contains the content identifier for embedded images.
image_typeThis property contains the content type for embedded images.
importanceImportance of the mail message (optional).
local_hostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
message_htmlThe HTML version of the message.
message_recipient_countThe number of records in the MessageRecipient arrays.
message_recipient_addressThis property contains the email address of the recipient.
message_recipient_nameThis property contains name of the recipient.
message_recipient_optionsThis property contains the recipient sending options (used only by SMTP).
message_recipient_typeThis property contains the recipient type: To, Cc, or BCc.
message_textThe plain text version of the message.
other_headersAn RFC 822 compliant string consisting of extra headers.
proxy_auth_schemeThis property is used to tell the class which type of authorization to perform when connecting to the proxy.
proxy_auto_detectThis property tells the class whether or not to automatically detect and use proxy system settings, if available.
proxy_passwordThis property contains a password if authentication is to be used for the proxy.
proxy_portThis property contains the TCP port for the proxy Server (default 80).
proxy_serverIf a proxy Server is given, then the HTTP request is sent to the proxy instead of the server otherwise specified.
proxy_sslThis property determines when to use SSL for the connection to the proxy.
proxy_userThis property contains a user name, if authentication is to be used for the proxy.
quota_max_per_24_hoursThe maximum number of emails that can be sent in a 24 hour period.
quota_max_per_secondThe maximum number of emails that can be sent per second.
quota_sent_last_24_hoursThe number of emails sent during the previous 24 hours.
read_receipt_toEmail address to send a read receipt to.
reply_toA mail address to which to reply (optional).
secret_keyThe Secret Access Key for the Amazon Web Services account.
send_stat_countThe number of records in the SendStat arrays.
send_stat_bouncesThe number of emails that bounced.
send_stat_complaintsThe number of emails that were rejected by the recipient.
send_stat_delivery_attemptsThe number of emails that have been sent or are queued to be sent.
send_stat_rejectsThe number of emails rejected by Amazon SES.
send_stat_timestampThe time of the data point.
send_toA comma separated list of addresses for destinations (required).
ssl_accept_server_cert_encodedThe certificate (PEM/base64 encoded).
ssl_cert_encodedThe certificate (PEM/base64 encoded).
ssl_cert_storeThe name of the certificate store for the client certificate.
ssl_cert_store_passwordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
ssl_cert_store_typeThe type of certificate store for this certificate.
ssl_cert_subjectThe subject of the certificate used for client authentication.
ssl_server_cert_encodedThe certificate (PEM/base64 encoded).
subjectThe subject of the mail message (optional).
timeoutA timeout for the class.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

add_attachmentAdds FileName as an attachment.
configSets or retrieves a configuration setting.
delete_identityDeletes the identity.
do_eventsProcesses events from the internal message queue.
get_identity_attributesGets the attributes of the given identity.
get_send_quotaGets send quota information.
get_send_statisticsGets the user's sending statistics.
get_x_valueRetrieves a valid XPath expression from the HTTP response after calling SendCustomRequest .
interruptInterrupt the current method.
list_identitiesLists the identities of the given type.
resetResets request-related properties.
sendSends the message.
send_custom_requestAllows the sending of a custom request to an Amazon web service.
set_identity_feedback_forwardingEnables or Disables feedback forwarding for the identity.
set_identity_notification_topicSets the Bounce or Complaint notification topic for an identity.
verify_domainVerifies a domain.
verify_emailVerifies an email address.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

on_errorInformation about errors during data delivery.
on_identity_listFired for every identity when ListIdentities is called.
on_logFires once for each log message.
on_ssl_server_authenticationFired after the server presents its certificate to the client.
on_ssl_statusShows the progress of the secure connection.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

APIVersionService's API version.
HTTPMethodSpecifies the HTTP method to use when sending a custom request.
IsPagedSpecifies whether or not the results are paged.
MaxListIdentityResultsThat maximum number of identities to return when ListIdentities is called.
MessageDateThe date of the mail message.
MessageIdThe message id of the mail message.
MIMEMessageMIME encoded message to send.
ParseHTMLWhether or not to create a plaintext part from the HTML message.
PriorityThe priority of the mail message.
RegionThe region the class will make requests against.
SignCustomRequestTells the class to sign the outgoing request.
TransferredDataReturns the entire XML response received from the server.
URLIf set, the default URL will be overridden by this value.
XPathProvides a way to point to a specific element in the returned XML or JSON response.
XTextThe text of the current element.
AcceptEncodingUsed to tell the server which types of content encodings the client supports.
AllowHTTPCompressionThis property enables HTTP compression for receiving data.
AllowHTTPFallbackWhether HTTP/2 connections are permitted to fallback to HTTP/1.1.
AppendWhether to append data to LocalFile.
AuthorizationThe Authorization string to be sent to the server.
BytesTransferredContains the number of bytes transferred in the response data.
ChunkSizeSpecifies the chunk size in bytes when using chunked encoding.
CompressHTTPRequestSet to true to compress the body of a PUT or POST request.
EncodeURLIf set to true the URL will be encoded by the class.
FollowRedirectsDetermines what happens when the server issues a redirect.
GetOn302RedirectIf set to true the class will perform a GET on the new location.
HTTP2HeadersWithoutIndexingHTTP2 headers that should not update the dynamic header table with incremental indexing.
HTTPVersionThe version of HTTP used by the class.
IfModifiedSinceA date determining the maximum age of the desired document.
KeepAliveDetermines whether the HTTP connection is closed after completion of the request.
KerberosSPNThe Service Principal Name for the Kerberos Domain Controller.
LogLevelThe level of detail that is logged.
MaxRedirectAttemptsLimits the number of redirects that are followed in a request.
NegotiatedHTTPVersionThe negotiated HTTP version.
OtherHeadersOther headers as determined by the user (optional).
ProxyAuthorizationThe authorization string to be sent to the proxy server.
ProxyAuthSchemeThe authorization scheme to be used for the proxy.
ProxyPasswordA password if authentication is to be used for the proxy.
ProxyPortPort for the proxy server (default 80).
ProxyServerName or IP address of a proxy server (optional).
ProxyUserA user name if authentication is to be used for the proxy.
SentHeadersThe full set of headers as sent by the client.
StatusLineThe first line of the last response from the server.
TransferredDataThe contents of the last response from the server.
TransferredDataLimitThe maximum number of incoming bytes to be stored by the class.
TransferredHeadersThe full set of headers as received from the server.
TransferredRequestThe full request as sent by the client.
UseChunkedEncodingEnables or Disables HTTP chunked encoding for transfers.
UseIDNsWhether to encode hostnames to internationalized domain names.
UsePlatformHTTPClientWhether or not to use the platform HTTP client.
UserAgentInformation about the user agent (browser).
ConnectionTimeoutSets a separate timeout value for establishing a connection.
FirewallAutoDetectTells the class whether or not to automatically detect and use firewall system settings, if available.
FirewallHostName or IP address of firewall (optional).
FirewallPasswordPassword to be used if authentication is to be used when connecting through the firewall.
FirewallPortThe TCP port for the FirewallHost;.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
KeepAliveIntervalThe retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.
KeepAliveTimeThe inactivity time in milliseconds before a TCP keep-alive packet is sent.
LingerWhen set to True, connections are terminated gracefully.
LingerTimeTime in seconds to have the connection linger.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe port in the local host where the class binds.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
MaxTransferRateThe transfer rate limit in bytes per second.
ProxyExceptionsListA semicolon separated list of hosts and IPs to bypass when using a proxy.
TCPKeepAliveDetermines whether or not the keep alive socket option is enabled.
TcpNoDelayWhether or not to delay when sending packets.
UseIPv6Whether to use IPv6.
LogSSLPacketsControls whether SSL packets are logged when using the internal security API.
OpenSSLCADirThe path to a directory containing CA certificates.
OpenSSLCAFileName of the file containing the list of CA's trusted by your application.
OpenSSLCipherListA string that controls the ciphers to be used by SSL.
OpenSSLPrngSeedDataThe data to seed the pseudo random number generator (PRNG).
ReuseSSLSessionDetermines if the SSL session is reused.
SSLCACertFilePathsThe paths to CA certificate files on Unix/Linux.
SSLCACertsA newline separated list of CA certificate to use during SSL client authentication.
SSLCheckCRLWhether to check the Certificate Revocation List for the server certificate.
SSLCipherStrengthThe minimum cipher strength used for bulk encryption.
SSLEnabledCipherSuitesThe cipher suite to be used in an SSL negotiation.
SSLEnabledProtocolsUsed to enable/disable the supported security protocols.
SSLEnableRenegotiationWhether the renegotiation_info SSL extension is supported.
SSLIncludeCertChainWhether the entire certificate chain is included in the SSLServerAuthentication event.
SSLNegotiatedCipherReturns the negotiated ciphersuite.
SSLNegotiatedCipherStrengthReturns the negotiated ciphersuite strength.
SSLNegotiatedCipherSuiteReturns the negotiated ciphersuite.
SSLNegotiatedKeyExchangeReturns the negotiated key exchange algorithm.
SSLNegotiatedKeyExchangeStrengthReturns the negotiated key exchange algorithm strength.
SSLNegotiatedVersionReturns the negotiated protocol version.
SSLProviderThe name of the security provider to use.
SSLSecurityFlagsFlags that control certificate verification.
SSLServerCACertsA newline separated list of CA certificate to use during SSL server certificate validation.
TLS12SignatureAlgorithmsDefines the allowed TLS 1.2 signature algorithms when UseInternalSecurityAPI is True.
TLS12SupportedGroupsThe supported groups for ECC.
TLS13KeyShareGroupsThe groups for which to pregenerate key shares.
TLS13SignatureAlgorithmsThe allowed certificate signature algorithms.
TLS13SupportedGroupsThe supported groups for (EC)DHE key exchange.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Mail 2020 Python Edition - Version 20.0 [Build 8308]