Problem is Gmail automatically creates hyperlinks for all website URLs and email addresses. I do not want to create a link.
var mailClient = new SmtpClient(); var netMail = new MailMessage(); msg = "I do not want www.google.com as a link at recipient end. <br/>"; msg += "I want my email addrress [email protected] as html without a link"; var cr = new NetworkCredential("########", "###########"); netMail.From = new MailAddress("########@m####.###", "######"); netMail.To.Add(new MailAddress("[email protected]")); netMail.Subject = "Test Mail"; netMail.IsBodyHtml = true; netMail.Body = msg; mailClient.Host = "xyz.com"; mailClient.Port = 25; mailClient.EnableSsl = false; mailClient.Credentials = cr; mailClient.Send(netMail);
Any solution?
If you would like to disable the automatic Smart Link Previews when composing an email, you can do so by clicking the Right Inbox icon at the top right of your Gmail page and selecting 'Smart Link Preview Settings'. You will then be presented with an option to disabled the feature.
HyperG - Automatic Hyperlinks In Gmail. Automatically create hyperlinks in gmail. This extension will save you a ton of time Simply type a word or phrase and HyperG will automatically convert it into a hyperlink.
Link protection checks for malicious or other suspicious links in Gmail messages. For example, spammers can send links in email that trick people into giving up sensitive information, and hackers can include links to harmful software. Gmail link protection warns your users when they click links in these messages.
I had a same issue and found out if you use email like this;
<a rel="nofollow" style='text-decoration:none; color:#333'>[email protected]</a>
email providers does not tend to follow email as a link.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With