Sendgrid Web API使用C#在reply_to字段中设置多个用户

时间:2015-10-22 12:42:51

标签: c# api sendgrid

我正在使用带有C#库的Sendgrid电子邮件服务,并尝试在ReplyTo字段中设置多个用户。

这是我发送电子邮件的代码

var msg = new SendGridMessage()
{
    Subject = SomeSubject,
    From = new MailAddress("from@mail.com", "From name"),
    To = new MailAddress[] {new MailAddress("destination@mail.com","destinationName")},
    Bcc = new MailAddress[]
    {
        new MailAddress("BccDestination@mail.com", "BccDestinationName"),
    },
    ReplyTo = new MailAddress[]{
        new MailAddress("someone@email.com", "Jhon Doe"),
        new MailAddress("jsmith@email.com", "Jhon Smith"),
    },

    Html = SomeHtml
};

当我检查发送的电子邮件时,我尝试回答它,只显示我添加的第一个邮件地址(someone@email.com),并且没有第二个邮件地址(jsmith@email.com) 。我该怎么办?

0 个答案:

没有答案