unable to send href in anchor tag while sending a mail (GMAIL)
<p><strong>Explanation :</strong> I am trying to send <strong>href</strong> in <code>html anchor tag</code> in email from MVC controller. It is working fine with <code>yohoo</code> mail and also with <code>outlook</code> but only getting issue with <code>Gmail</code>. Don't know why but when I am sending email to Gmail ID than <code>html anchor tag</code> just remove the href attribute from anchor tag. It is Happening only with gmail ID. I am using html template to send email.</p>

<p><strong>E-Mail Html Template</strong> </p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;    
&lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;

&lt;body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"&gt;
    &lt;center&gt;
        &lt;table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable"&gt;
            &lt;tr&gt;
                &lt;td align="center" valign="top" id="bodyCell"&gt;
                    &lt;table border="0" cellpadding="0" cellspacing="0" id="templateContainer"&gt;
                        &lt;tr&gt;
                            &lt;td style="text-align:center;vertical-align:top;"&gt;
                                &lt;table border="0" cellpadding="0" cellspacing="0" width="100%" id="templateHeader"&gt;
                                    &lt;tr&gt;
                                        &lt;td class="headerContent" style="text-align:center;vertical-align:top;"&gt;
                                            &lt;img src="cid:logo" style="max-width:600px;" id="headerImage" /&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                &lt;/table&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td style="text-align:center;vertical-align:top;"&gt;
                                &lt;table style="border:0;width:100%;" cellpadding="0" cellspacing="0" id="templateBody"&gt;
                                    &lt;tr&gt;
                                        &lt;td valign="top" class="bodyContent" mc:edit="body_content"&gt;
                                            &lt;h1&gt;Dear @ReceiverFirstNAME@,&lt;/h1&gt;
                                            &lt;p style="text-align:justify;"&gt;Please click on below URL to download your backup file for @CompanyName@&lt;/p&gt;

                                            &lt;p&gt;&lt;a href="@BackupURL@" style="color:blue"&gt;Download&lt;/a&gt;&lt;/p&gt;
                                            &lt;p style="text-align:justify;"&gt;Download link will be expire after 24 Hours.&lt;/p&gt;
                                            &lt;br /&gt; ********************************************************************************************
                                            &lt;br /&gt; This is a system generated mail, so please do not reply to this email id.
                                            &lt;br /&gt; ********************************************************************************************

                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                &lt;/table&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td style="text-align:center;vertical-align:top;"&gt;
                                &lt;table style="border:0;width:100%;" cellpadding="0" cellspacing="0" id="templateFooter"&gt;
                                    &lt;tr&gt;
                                        &lt;td class="footerContent" style="padding-top:0;vertical-align:top;text-align:center;"&gt;
                                            &lt;em&gt;Copyright © H2eFile 2015. All rights reserved.&lt;/em&gt;
                                            &lt;br /&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                &lt;/table&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                    &lt;/table&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/center&gt;
&lt;/body&gt;    
&lt;/html&gt;
</code></pre>

<p><strong>Generating E-Mail Body Code</strong></p>

<pre><code>private AlternateView GenerateBodyTag(string companyName, string companyCode, string firstName, string lastName, string url, string logo) {
    StreamReader readtemplte = new StreamReader(Server.MapPath(@ "\\MailResource/ApplicationBackup.html"));
    string mailmsg = readtemplte.ReadToEnd();
    mailmsg = mailmsg.Replace("@ReceiverFirstNAME@", firstName + " " + lastName);
    mailmsg = mailmsg.Replace("@CompanyName@", companyName);
    mailmsg = mailmsg.Replace("@BackupURL@", url);

    byte[] data = System.Convert.FromBase64String(logo);
    MemoryStream ms = new MemoryStream(data);
    LinkedResource linkLogo = new LinkedResource(ms);
    linkLogo.ContentId = "logo";
    AlternateView objAv = AlternateView.CreateAlternateViewFromString(mailmsg, null, MediaTypeNames.Text.Html);
    objAv.LinkedResources.Add(linkLogo);
    return objAv;
}
</code></pre>

<p>Only in Gmail don't know why href is removed automatically. I traced above code it seems fine but unable to traced it out why issue with gmail. So please make me correct where I am doing mistake. If more information required than please let me know I will update question.</p>