boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
8.99k stars 1.86k forks source link

SES send email example doesn't work #4200

Closed okaram closed 2 months ago

okaram commented 2 months ago

Describe the issue

The example for sending email in https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ses/client/send_email.html

does NOT work. It seems it has some extra empty parameters that the API doesn't support.

Removing these lines at the end of the example make it work: ReplyToAddresses=[ ], ReturnPath='', ReturnPathArn='', SourceArn='',

Links

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ses/client/send_email.html

tim-finnigan commented 2 months ago

Thanks for reporting this issue, I can confirm that the example does not work with those fields set to empty strings. In this case the example will need to be fixed upstream by the SES team, since examples like these are modeled for use across AWS SDKs (For example .NET and JavaScript).

Since this applies to other SDKs, I created an issue for this in our cross-SDK repository (https://github.com/aws/aws-sdk/issues/778). I'll also reach out to the SES team regarding this issue. Thanks again.

github-actions[bot] commented 2 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.