.NET AWSSDK.SimpleEmailV2 - 发件人地址中的友好名称

问题描述 投票:0回答:1

有人获得了 SimpleEmailV2 SDK 来正确地将友好名称显示为发件人地址吗?我已尝试遵循应支持的标准,但我没有在电子邮件客户端中获得预期的显示。

var sendEmailRequest = new SendEmailRequest
{
    FromEmailAddress = "John Doe <[email protected]>", // i have an actual address here    
    Destination = new Destination
    {
        ToAddresses = new List<string> { "[email protected]" } // i have an actual address here
    },
    Content = new EmailContent
    {
        Simple = new Message
        {
            Subject = new Content { Data = "TEST Email subject" },
            Body = new Body 
            {
                IsHtml = false,
                Text = "This is the body of my email"
            }
        }
    }
};

我希望在我的电子邮件客户端中看到“John Doe”作为发件人,但我看到“Johndoe No-Reply”。是否有一个标志或属性我没有正确分配以正确设置 SES?

.net email amazon-ses aws-sdk-net
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.