时间:2019-03-17 标签:c#.net 3.5System.Net.Mail

发布于 2024-08-23 12:35:10 字数 909 浏览 1 评论 0原文

我没主意了! 如果我这样做:

string strTo = "[email protected]";
string strFrom = "[email protected]";
string strSubject = "turn on html";


MailMessage mail = new MailMessage(strFrom, strTo, strSubject, "<u>ok!</u>");

SmtpClient smtp = new SmtpClient("127.0.0.1");

smtp.Send(mail);

它有效,但我在 Outlook 中看到 html 标签。

如果我这样做:

mail.IsBodyHtml = true;

之前

smtp.Send(mail);

在我没有收到电子邮件

!我检查了 Exchange 邮件跟踪,该邮件不存在。

我检查了 smtp 日志,没有看到我的消息!

我检查了垃圾邮件过滤器,没有消息!

我检查了垃圾邮件文件夹,没有!

奇怪的是,如果我将 strTo 更改为外部电子邮件,它就可以工作!!!

在这里疯了:-(

I'm out of ideas!
If I do this:

string strTo = "[email protected]";
string strFrom = "[email protected]";
string strSubject = "turn on html";


MailMessage mail = new MailMessage(strFrom, strTo, strSubject, "<u>ok!</u>");

SmtpClient smtp = new SmtpClient("127.0.0.1");

smtp.Send(mail);

it works, but I see the html tags in outlook.

if I do:

mail.IsBodyHtml = true;

before

smtp.Send(mail);

I dont receive the email!

I have checked Exchange Message Tracking, the message is not there.

I have checked the smtp Logs, I dont see my message!

I have checked the spam filter, no message!

I have checked junk email folder, not there!

wierd thing is if I change the strTo to an external email it works!!!!

going crazy here :-(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太傻旳人生 2024-08-30 12:35:10

经过几个小时的搜索,我发现如果隔离邮箱启用了内容过滤,则阻止的邮件不会被记录,也不会被 Exchange 的邮件跟踪系统发现。

这是在 Exchange 2007 上。

所有消息都在那里,真是浪费时间:-(

After hours of searching, I found out if Content Filtering is Enabled with a Quarantine Mailbox, blocked messages are not logged and not found by Exchange's Message Tracking system.

This is on Exchange 2007.

All the messages were there, what a waste of time :-(

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文