send_bulk_email
async
¶
send_bulk_email(
default_content: BulkEmailContent,
bulk_email_entries: BulkEmailEntryList,
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = 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/async_se_sv2.py
6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 | |