【问题标题】:Sending mail "on behalf of" in exchange server 2010在 Exchange Server 2010 中“代表”发送邮件
【发布时间】:2011-06-08 10:15:09
【问题描述】:

我正在尝试使用 Exchange Server 2010 和 System.Net.Mail.SmtpClient 发送邮件。我已向用户授予所有邮箱的适当权限。但是,邮件发送失败(在 SendAsync 方法中没有任何异常)。相反,如果我在邮箱上授予 Send As 权限,则邮件发送成功。是否可以在不使用 Exchange API 的情况下从 Exchange Server 发送“代表”邮件

【问题讨论】:

    标签: c# email exchange-server system.net.mail send-on-behalf-of


    【解决方案1】:
    MailMessage message = new MailMessage();
    
    message.From = new MailAddress("fromthepersonwho@sentthis.com");
    

    【讨论】:

      【解决方案2】:

      MailMessage 类公开了两个属性:From 和 Sender

      将发件人设置为地址 1 并将发件人设置为地址 2 将发送一封邮件,其内容为“地址 1 代表地址 2”

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-09-14
        • 2015-05-12
        • 2013-11-12
        • 2016-01-18
        • 1970-01-01
        • 2019-02-28
        • 2020-01-06
        相关资源
        最近更新 更多