send_bulk_email
¶
send_bulk_email(
default_content: BulkEmailContent,
bulk_email_entries: BulkEmailEntryList,
*,
config_overrides: Optional[SESv2ClientConfig] = None,
from_email_address: Optional[EmailAddress] = None,
from_email_address_identity_arn: Optional[AmazonResourceName] = None,
reply_to_addresses: Optional[EmailAddressList] = None,
feedback_forwarding_email_address: Optional[EmailAddress] = None,
feedback_forwarding_email_address_identity_arn: Optional[AmazonResourceName] = None,
default_email_tags: Optional[MessageTagList] = None,
configuration_set_name: Optional[ConfigurationSetName] = None,
endpoint_id: Optional[EndpointId] = None,
tenant_name: Optional[TenantName] = None,
configuration_overrides: Optional[ConfigurationOverrides] = None,
) -> SendBulkEmailResponse
Composes an email message to multiple destinations.
Parameters:
-
from_email_address(Optional[EmailAddress], default:None) –The email address to use as the "From" address for the email. The address that you specify has to be verified.
-
from_email_address_identity_arn(Optional[AmazonResourceName], default:None) –This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the
FromEmailAddressparameter.For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use [email protected], then you would specify the
FromEmailAddressIdentityArnto be arn:aws:ses:us-east-1:123456789012:identity/example.com, and theFromEmailAddressto be [email protected].For more information about sending authorization, see the Amazon SES Developer Guide.
-
reply_to_addresses(Optional[EmailAddressList], default:None) –The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
-
feedback_forwarding_email_address(Optional[EmailAddress], default:None) –The address that you want bounce and complaint notifications to be sent to.
-
feedback_forwarding_email_address_identity_arn(Optional[AmazonResourceName], default:None) –This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the
FeedbackForwardingEmailAddressparameter.For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArnto be arn:aws:ses:us-east-1:123456789012:identity/example.com, and theFeedbackForwardingEmailAddressto be [email protected].For more information about sending authorization, see the Amazon SES Developer Guide.
-
default_email_tags(Optional[MessageTagList], default:None) –A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmailoperation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events. -
default_content(BulkEmailContent) –An object that contains the body of the message. You can specify a template message.
-
bulk_email_entries(BulkEmailEntryList) –The list of bulk email entry objects.
-
configuration_set_name(Optional[ConfigurationSetName], default:None) –The name of the configuration set to use when sending the email.
-
endpoint_id(Optional[EndpointId], default:None) –The ID of the multi-region endpoint (global-endpoint).
-
tenant_name(Optional[TenantName], default:None) –The name of the tenant through which this bulk email will be sent.
The email sending operation will only succeed if all referenced resources (identities, configuration sets, and templates) are associated with this tenant.
-
configuration_overrides(Optional[ConfigurationOverrides], default:None) –An object that overrides, for the messages in this request only, settings that would otherwise apply to them. The overrides apply to every message in the request. Each setting that you don't override keeps the value that already applies.
Raises:
-
AccountSuspendedException–The message can't be sent because the account's ability to send email has been permanently restricted.
-
BadRequestException–The input you provided is invalid.
-
LimitExceededException–There are too many instances of the specified resource type.
-
MailFromDomainNotVerifiedException–The message can't be sent because the sending domain isn't verified.
-
MessageRejected–The message can't be sent because it contains invalid content.
-
NotFoundException–The resource you attempted to access doesn't exist.
-
SendingPausedException–The message can't be sent because the account's ability to send email is currently paused.
-
TooManyRequestsException–Too many requests have been made to the operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sesv2/_services/se_sv2.py
6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 | |