Support » Plugin: Subscribe2 - Form, Email Subscribers & Newsletters » Difference between post notification and send email feature

  • Resolved aleb88

    (@aleb88)


    Good morning,
    I’m having an issue related to the new post notification.
    I’m using the “notification template” pasting some HTML code I prepared previously and when I send a preview, the result shows a massive amount of <br> generated in the code.
    When I try using the feature “Send Email” it works perfectly instead without generating any unwanted <br> and displaying the correct email template I prepared.

    Below you can find the template:

    <p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    </head>
    <body style="margin: 0; padding: 0;"><nobr></p>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td style="padding: 10px 0 30px 0;">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc; border-collapse: collapse;">
    <tr>
    <td align="center" bgcolor="#132c4d" style="padding: 40px 0 30px 0; color: #153643; font-size: 28px; font-weight: bold; font-family: Roboto, sans-serif;">
                                <img src="http://www.spinagroup.com/intranet/wp-content/uploads/Spina_home.png" alt="Spina Home"  style="display: block;" />
                            </td>
    </tr>
    <tr>
    <td bgcolor="#ffffff" style="padding: 20px 30px 0px 30px;"><nobr>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td style="color: #153643; font-family: Arial, sans-serif; font-size: 24px;">
                                            <b>{BLOGNAME} ha pubblicato un nuovo articolo!
    </b>
                                       </nobr></td>
    </tr>
    <tr>
    <td style="padding: 20px 0 30px 0; color: #153643; font-family: Arial, sans-serif; font-size: 16px; line-height: 20px;">Scoprilo al link {PERMALINK}
    Vendesi Nissan Micra! Sei interessato? Affrettati! Chiedi a Ilaria! </td>
    </tr>
    <tr>
    <td>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#cd1719" style="padding: 30px 30px 30px 30px;"> </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <p></nobr></body>
    </html></p>

    I would keep using the “Send email” feature as a workaround but I would love to use the new post notifications features that could ease the work so I’m trying to understand why the output of my HTML code is completely different with the 2 methods.

    The email is received on Outlook both webmail and desktop app.

    I can’t provide a link because the website is a password protected intranet. In case you need further permissions PM me please.

    Thank you very much for the support you will provide.

    Alessandro Bonfante

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mattyrob

    (@mattyrob)

    @aleb88

    You need to remove a lot of the line breaks from the template pasted above, for example:

    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#cd1719" style="padding: 30px 30px 30px 30px;"> </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    Needs to look more like:

    </table></td></tr><tr><td bgcolor="#cd1719" style="padding: 30px 30px 30px 30px;"></td></tr></table></td></tr></table>

    Thank you for the reply mattyrob. I tried doing that multiple times, but when I send a preview message, the template goes back to the original coding like I didn’t remove any line break.

    Never mind, I found out that I didn’t save the template before having the preview. It worked properly. Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.