【问题标题】:Yahoo Mail not saving sent mail from My application雅虎邮箱不保存从我的应用程序发送的邮件
【发布时间】:2013-09-30 14:03:16
【问题描述】:

在我的应用程序中,我使用 SMTP 服务器身份验证从我的 yahoo 邮件 ID 发送邮件。 发送邮件时,成功发送邮件,收件人也收到邮件。 问题是雅虎没有在我的雅虎帐户中维护已发送的邮件副本。 据我所知,我需要设置“在已发送文件夹中保存副本消息”以进行保存,但它只是在我从雅虎本身而不是从其他应用程序发送邮件时才起作用..

Gmail 不会发生同样的事情,因为它会保存从两者(Gmail 帐户和我的应用程序)发送的邮件。

需要在雅虎中进行哪些设置,或者我需要在我的应用程序中设置一些设置?

【问题讨论】:

  • 我遇到了完全相同的问题。每当我通过 SMTP(即使使用 Outlook)发送电子邮件时,它都不会显示在 Web 界面中。不过,这听起来不像是特定于 C# 的问题,一定是他们的问题。

标签: c# smtp sendmail


【解决方案1】:

如果可能,请尝试使用EmailMessage

参考下面的代码,看看它是否有效-

// Create an email message and identify the Exchange service.
EmailMessage message = new EmailMessage(service);

// Add properties to the email message.
message.Subject = "Interesting";
message.Body = "The merger is finalized.";
message.ToRecipients.Add("user1@contoso.com");

// Send the email message and save a copy.
message.SendAndSaveCopy();

参考-Creating and sending email messages by using the EWS Managed API

【讨论】:

  • 我可以用这个类在消息正文中发送图像吗?
  • 你需要检查一下。看看你能不能先解决你的主要问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-01-31
  • 2011-06-29
  • 2012-01-13
  • 2012-11-18
  • 1970-01-01
  • 1970-01-01
  • 2011-06-21
相关资源
最近更新 更多