c# - SmtpClient.send(MailMessage) is adding an extra period in the body text of the email -


i'm using system.net.mail.smtpclient.

i build mailmessage. isbodyhtml set true. body html links.

occasionally, strange behavior occurs - period added 1 of links. example, link set in mailmessage body:

<a href="http://www.myapp.com/company/contact">contact us</a> 

but email received shows period:

<a href="http://www.myapp..com/company/contact">contact us</a> 

the strange behavior sometime period added different link , won't added @ all!

is bug system.net.mail.smtpclient? because body in mailmessage not have period right it's sent:

_smtp.send(message); //message.body has no period during sending 

note, using deliverymethod = smtpdeliverymethod.specifiedpickupdirectory writing email file.

update: i'm don't think fixed it, setting message.bodyencoding = system.text.encoding.utf8;, can't seem reproduce bug. ideas why may have fixed it?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -