• Resolved arun.cktd

    (@aruncktd)


    Hello Support,

    I have created a HTML email template and put in your Plugin editor and sent the email But I am not getting same output in the email. Lot’s of <br> automatically added when I am seeing it into firebug.

    Please help me how can I fixed this issue.

    Thanks

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Icegram

    (@icegram)

    @aruncktd,

    Are you entering a new line by pressing enter key in your email content (during creation from Email Subscribers -> Compose menu?)
    Please try creating the same by pressing shift key + enter for a new line. Then have a check if it looks correctly.

    Hi,

    i have quiet the same problem: whenever i use ###POSTFULL###, everthing looks fine in the preview, but when i send the mail it’s always adding numerous “<br>”-Tags before the actual content.

    I looked up the code in “/classes/es-sendmail.php”, commented out line 286:
    $post_full = wpautop($post_full);

    I also tried commenting out line 335:

    if ( $settings['es_c_mailtype'] == "WP HTML MAIL" || $settings['es_c_mailtype'] == "PHP HTML MAIL" ) {
    			$content = str_replace("\r\n", "<br />", $content);
    		} else {
    			$content = str_replace("<br />", "\r\n", $content);
    		}

    But nothing changes – any ideas left from your side?

    King regards

    I have the same problem, but I don’t seem to be using ###POSTFULL### unless it’s being used somewhere I can’t find?

    For example the preview looks fine, but when sent the email contains;

    <table align=center”><br /><tbody><br /><tr><br /><td style=3D”text-align: center;”><br />…. and so on

    Thats a <br /> inserted after every HTML element.

    In “/classes/es-sendmail.php” Line 336:
    $content = str_replace("\r\n", "<br />", $content);

    Is the search term and replacement back to front?

    If I change to;
    $content = str_replace("\r\n", "", $content);

    the problem then seems to go away?

    For reference Line 335 – 339:

    		if ( $settings['es_c_mailtype'] == "WP HTML MAIL" || $settings['es_c_mailtype'] == "PHP HTML MAIL" ) {
    			$content = str_replace("\r\n", "<br />", $content);
    		} else {
    			$content = str_replace("<br />", "\r\n", $content);
    		}
    

    Sadly, that doesn’t solve my Problem. I still have numerous “<br>”-Tags before the ###POSTFULL### 🙁

    Plugin Author Icegram

    (@icegram)

    We’ll look into it and we’ll update you once we have working solution for the same.

    Thank you!

    jtschulik

    (@jtschulik)

    Any Update on this issue?

    pwrplay

    (@pwrplay)

    Would be very interested in this to. We use the email post functionality of your plugin.
    But when sending emails with Bullits it does not work.

    Can you help out on this?

    pwrplay

    (@pwrplay)

    rephrase, when using ###POSTFULL### we are not getting the email in HTML.
    It shows as plain text, so without bullits etc…
    We do not have a problem with the <br> things

    Plugin Author Icegram

    (@icegram)

    @pwrplay,

    Which type you have selected to send emails? HTML or PLAINTEXT?
    Check the setting from Email Subscribers -> Email Settings -> Mail Type.

    Once more: any Update on this issue? After the last Update i still have several line-breaks, but this time before tables 🙁

    I have noticed a bit more of this problem.

    if you code the HTML email in the WordPress text editor Email Subscribers -> Compose in this format for example;

    
    <table>
    <tr>
    <td> etc
    

    The email sent to subscribers is output as;
    <table><br /><tr><br /><td><br /> etc

    if you edit in the text window as;
    <table><tr><td> etc, then the output is all fine

    But here is the catch, if you change from the text window to the visual, wordpress ‘tidyies’ up the code and puts each element onto a new line, and thus introduces a <br /> for each element!

    Plugin Author Icegram

    (@icegram)

    By default, WordPress adds <br> tags in tables.

    Are you all writing inline CSS in table tags? Can you please temporarily remove the inline CSS, save template and try sending a test email and check if it works?

    Let us know your views on the same.

    • Removed inline-css from <table> tags: didn’t change anything.
    • Removed all inline-css: no change 🙁
Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Not Getting same HTML template in email’ is closed to new replies.