繁体   English   中英

是否可以使用 AWS SES Boto3 在外发电子邮件上设置“回复”header

[英]Is it possible to set the 'In-Reply-To' header on outgoing emails with AWS SES Boto3

我目前正在使用 Boto 3 python 库通过 Amazon SES 发送 email。 我正在使用 send_email function,它允许我在传出的 email 中设置各种标题。 但是,我看不到任何设置“In-Reply-To”header 的方法。 这个库可以吗?

文档似乎没有提到任何方法来实现这一点。 https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ses.html#SES.Client.send_email

您可以添加带有“ReplyToAddresses”字段的列表。

https://docs.aws.amazon.com/ses/latest/dg/send-an-email-using-sdk-programmatically.html的示例中添加此字段

REPLYTO=["email1@somedomain.com","email2@otherdomain.com"]
#Provide the contents of the email.
response = client.send_email(
    Destination={
        'ToAddresses': [
            RECIPIENT,
        ],
    },
    Message={
        'Body': {
            'Html': {
                'Charset': CHARSET,
                'Data': BODY_HTML,
            },
            'Text': {
                'Charset': CHARSET,
                'Data': BODY_TEXT,
            },
        },
        'Subject': {
            'Charset': CHARSET,
            'Data': SUBJECT,
        },
    },
    Source=SENDER,
    ReplyToAddresses=REPLYTO,
    # If you are not using a configuration set, comment or delete the
    # following line
    ConfigurationSetName=CONFIGURATION_SET,
)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM