Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Gmail from creating links for URLs and email addresses

Tags:

email

gmail

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?

like image 691
Manjoor Avatar asked Aug 16 '12 13:08

Manjoor


People also ask

How do I stop automatic hyperlinks in Gmail?

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.

Does Gmail automatically create hyperlinks?

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.

What is email link protection?

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.


1 Answers

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.

like image 138
Teoman shipahi Avatar answered Oct 09 '22 20:10

Teoman shipahi