c# - SmtpClient is replacing asterisks with <strong> tags -
i using microsoft's smtpclient class send email. delivered fine, formatting little off. sending more 1 asterisks in row results in of asterisks being replaced opening or closing "strong" tag.
sending literal string:
1 * 2 ** 3 *** 4 **** 5 ***** 6 ******
results in email source code this:
i send email follows:
var mailmessage = new mailmessage(); mailmessage.subject = <subject string>; mailmessage.body = <literal string mentioned above>; mailmessage.isbodyhtml = email.isbodyhtml; //which false var tomailaddress = new mailaddress(email.toemailaddress, email.toname); mailmessage.to.add(tomailaddress); using (var smtpclient = new smtpclient()) { smtpclient.send(mailmessage); }
any great appreciated.
Comments
Post a Comment