【问题标题】:webmatrix - Reply-To webmail.send headerwebmatrix - 回复 webmail.send 标头
【发布时间】:2013-04-17 19:48:58
【问题描述】:

有人知道如何在 C# 中执行以下操作吗?

additionalHeaders.Add("Reply-To: test@test.com");

我需要将其插入到以下代码中:

WebMail.Send(to: customerEmail,
        subject: "Booking enquiry from - " + customerEmail,
        body: customerRequest
    );

【问题讨论】:

    标签: razor webmatrix webmail


    【解决方案1】:

    使用以下方法解决:

    var header = new[]{"Reply-To:test@hotmail.com"};
    WebMail.Send(to: customerEmail,
            subject: "Booking enquiry from - " + customerEmail,
            body: customerRequest,
            additionalHeaders: header
        );
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-30
      • 1970-01-01
      • 1970-01-01
      • 2020-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-08
      相关资源
      最近更新 更多