Avoiding Spam Filter on Sending HTML Mail
Hi guys, it's me your host.
is there a moment in your life where you want to send emails, but want to avoid being blocked by Spam Filter on Destination Mail server .
hey there's some tricks come in rescue which i also experienced.
you see you've to make Two kinds of alternate view, one for view as plain text the other is HTML.
System.Net.Mail.MailMassage
d.Email.AlternateViews.Clear();
HtmlFile ConverterHtml = new HtmlFile(pathtowrite+ "temp.html");
d.Email.AlternateViews.Add(ConverterHtml.ConvertToMIME());
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString
(System.Text.RegularExpressions.Regex.Replace(hasilhtml, @"<(.|\n)*?>", string.Empty), null, "text/plain");
d.Email.AlternateViews.Add(plainView);
d.MailTo = penerima.email;
and they just loved it and let you pass.
Chiao