I'm out of ideas! If I do this:
string strTo = "email1@domain.com";
string strFrom = "email1@domain.com";
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 :-(
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 :-(
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.