Search code examples
htmlemailgmailphpmailerphp

Gmail mark as spam email with html and anchor links


first of all, sorry for my bad English =(

I created an HTML email, send it to yahoo, hotmail and gmail, the first and the second work's ok, received in the front of the inbox, but, the gmail mark as spam, but it will mark it as span only with I send these HTML codes:

                <tr>
                    <td colspan="2" style="padding:10px; border:2px solid #e3e3e3; text-align:center;"><a href="%%url%%" style="font-size:14px; text-decoration:none; color:#595959;"><span>Clique aqui e confira todas as informações e fotos dessa embarcação em nosso site - ID %%id%%</span></a></td>
                </tr>
                <tr>
                    <td colspan="2" style="padding:8px 10px; border-top:15px solid #fff; border-bottom:10px solid #fff; font-size:16px; text-transform:uppercase; color:#c90000; background:#e6e6e6;">Destaques YachtBrasil</td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="padding:3px; border:2px solid #e7e7e7;"><a href="http://www.yachtbrasil.com.br/"><span><img src="http://www.yachtbrasil.com.br/img/temp/YB-banner-email-site.jpg" alt="" style="display:block; border:none;" /></span></a></td>
                </tr>

It happens because of the anchor links, if I remove the stuff, it will work and send the email, the question is, How can I send anchor links to not be marked as Spam using gmail? I'm sending this email using a enterprise googlemail account.

Thanks for the tips, I search here and at google and just find the tip after the anchor link.

Best regards.


Solution

  • The problem is fixed!

    If you have an email with all the headers corrects, but the email still is not getting to inbox destination, you should explicitly type some anchor parameters, such as target=blank and shape=rect.

    See the example:

    <a href="link.html" target="_blank" style="style....">Test</a>
    

    Should only contain:

    <a href="link.html" target="_blank" shape="rect">Test</a>
    

    This will let the links be redirected to the inbox and not the spam folder!

    Thanks for the negative vote in the question, next time please read the question carefully and try to help!