Posted: December 19, 2013 at 7:17 am
|
Hi Support I’ve created custom html templates to use in the Payment Confirmation Email and Default Registration Confirmation Email. When these are sent out extra <br/> tags are added to the code. This is my html code i insert into the editor. <code><table style="font-family: Arial, sans-serif; font-weight: normal; font-size: 14px;" width="600" border="0" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td align="center" valign="top">***This is an automated response - Do Not Reply***</td> </tr> </tbody> </table> <table id="bodyTable" style="font-family: Arial, sans-serif; border: 1px solid #dddddd; color: #252525; font-size: 14px;" width="600" border="0" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td id="bodyCell" align="center" valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="headerContent" valign="top"><img id="headerImage" style="max-width: 600px;" alt="Imageframe Booking Confirmation" src="http://5.44.238.20/~imagefra/wp-content/themes/reverie-child/img/email-header.gif" /></td> </tr> </tbody> </table> <table style="background-color: #daebc1;" width="100%" border="0" cellspacing="0" cellpadding="30"> <tbody> <tr> <td class="headerContent" valign="top"> <h1 style="font-weight: normal;">Booking Confirmation</h1> </td> </tr> </tbody> </table> </td> </tr> <tr> <td align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="30"> <tbody> <tr> <td class="bodyContent" valign="top"><strong>Thank you [fname] [lname] for registering for </strong> <h3 style="color: #8c4398; font-weight: normal;">[event].</h3> <strong>This event starts at:</strong> [start_time] on [start_date] and runs until [end_time] on [end_date]. <h4>Location:</h4> [location] Phone: [location_phone] Google Map: [google_map_link] We hope that you will find this event both informative and enjoyable. Should you have any questions, please contact [contact]. <strong>If you have not done so already, please submit your payment for the following amount:</strong> --------- [cost] --------- Click here to review your payment information: [payment_url]. Click here to edit your payment information: [edit_attendee_link] Thank You.</td> </tr> </tbody> </table> </td> </tr> <tr> <td align="center" valign="top"> <table style="background-color: #707070; color: #fff;" width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="templateColumnContainer" style="padding-top: 20px;" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="30"> <tbody> <tr> <td class="leftColumnContent" valign="top"><span style="color: #fff;">Telephone: </span><span style="font-size: 22px;">0118 909 4731</span><span style="color: #fff;">Email: </span><span style="color: #fff;">info@imageframe.co.uk</span></td> </tr> </tbody> </table> </td> <td class="templateColumnContainer" style="padding-top: 20px; color: #fff;" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="30"> <tbody> <tr> <td class="rightColumnContent" style="text-align: right; color: #fff; font-size: 12px;" valign="top"><strong>Imageframe Ltd</strong> Soane Point 6-8 Market Place Reading Berkshire RG1 2EG</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table></code> This the code from the sent email. <code><table width="600" cellspacing="0" cellpadding="0" border="0" align="center" style="font-family:Arial, sans-serif;font-weight:normal;font-size:14px;"> <tbody> <tr> <td valign="top" align="center">***This is an automated response - Do Not Reply***</td> </tr> </tbody> </table><br> <br><br><br><br><br><br><table width="600" cellspacing="0" cellpadding="0" border="0" align="center" style="font-family:Arial, sans-serif;border:1px solid #dddddd;color:#252525;font-size:14px;" id="ecxbodyTable"> <tbody> <tr> <td valign="top" align="center" id="ecxbodyCell"><br> <br><br><br><br><br><br><br><br><br><br><br><br><table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top" align="center"><br> <br><br><br><br><br><br><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top" class="ecxheaderContent"><img src="https://dub122.mail.live.com/Handlers/ImageProxy.mvc?bicild=&canary=iMlK9XushywpzH6TF53%2fM3T5h3bXkVkv%2b%2foFli6iDH0%3d0&url=http%3a%2f%2f5.44.238.20%2f%7eimagefra%2fwp-content%2fthemes%2freverie-child%2fimg%2femail-header.gif" alt="Imageframe Booking Confirmation" style="max-width:600px;" id="ecxheaderImage"></td> </tr> </tbody> </table><br> <br><br><br><br><br><br><table width="100%" cellspacing="0" cellpadding="30" border="0" style="background-color:#daebc1;"> <tbody> <tr> <td valign="top" class="ecxheaderContent"><br> <h1 style="font-weight:normal;">Booking Confirmation</h1><br> </td> </tr> </tbody> </table><br> </td> </tr> <tr> <td valign="top" align="center"><br> <br><br><br><br><br><br><table width="100%" cellspacing="0" cellpadding="30" border="0"> <tbody> <tr> <td valign="top" class="ecxbodyContent"><strong>Thank you geoff lewin for registering for </strong><p></p><br> <h3 style="color:#8c4398;font-weight:normal;">Powerpoint intermediate.</h3><br> <p><strong>This event starts at:</strong></p><br> <p>3:00 pm on</p><br> <p>January 31, 2014 and runs until 5:00 pm on January 31, 2014.</p><br> <h4>Location:</h4><br> <p>Bullring<br>Bullring<br>Birmingham<br>B5 4BU<br>United Kingdom</p><br> <p>Phone: </p><br> <p>Google Map: <a target="_blank" href="http://maps.google.com/maps?q=Bullring%2cBirmingham%2cB5+4BU%2cUnited+Kingdom" class="button ecxradius small">Directions</a></p><br> <p>We hope that you will find this event both informative and enjoyable. Should you have any questions, please contact info@imageframe.co.uk. <strong>If you have not done so already, please submit your payment for the following amount:</strong></p><br> <p>---------</p><br> <p>£0.01</p><br> <p>---------</p><br> <p>Click here to review your payment information:</p><br> <p><a target="_blank" href="http://5.44.238.20/~imagefra/thank-you/?r_id=600-52b2febe2c0f1">View Your Payment Details</a>.</p><br> <p>Click here to edit your payment information:</p><br> <p><a title="Edit Attendee Details" class="ecxespresso_edit_attendee" id="ecxespresso_edit_attendee_79" target="_blank" href="http://5.44.238.20/~imagefra/event-registration/?r_id=600-52b2febe2c0f1&id=79&event_id=600&edit_attendee=true&single=true">Edit Registration Details</a></p><br> <p>Thank You.</p></td> </tr> </tbody> </table><br> </td> </tr> <tr> <td valign="top" align="center"><br> <br><br><br><br><br><br><br><table width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color:#707070;color:#fff;"> <tbody> <tr> <td valign="top" align="center" style="padding-top:20px;" class="ecxtemplateColumnContainer"><br> <br><br><br><br><br><br><table width="100%" cellspacing="0" cellpadding="30" border="0"> <tbody> <tr> <td valign="top" class="ecxleftColumnContent"><span style="color:#fff;">Telephone:<br><br> </span><span style="font-size:22px;">0118 909 4731</span><p></p><br> <p><span style="color:#fff;">Email: </span><span style="color:#fff;">info@imageframe.co.uk</span></p></td> </tr> </tbody> </table><br> </td> <td valign="top" align="center" style="padding-top:20px;color:#fff;" class="ecxtemplateColumnContainer"><br> <br><br><br><br><br><br><table width="100%" cellspacing="0" cellpadding="30" border="0"> <tbody> <tr> <td valign="top" style="text-align:right;color:#fff;font-size:12px;" class="ecxrightColumnContent"><strong>Imageframe Ltd</strong><br><br> Soane Point<br><br> 6-8 Market Place<br><br> Reading<br><br> Berkshire<br><br> RG1 2EG</td> </tr> </tbody> </table><br> </td> </tr> </tbody> </table><br> </td> </tr> </tbody> </table><br> </td> </tr> </tbody> </table></code> Why might it be adding extra tags? Thanks |
|
Sorry re-posted the code I’ve created custom html templates to use in the Payment Confirmation Email and Default Registration Confirmation Email. When these are sent out extra <br/> tags are added to the code. This is my html code i insert into the editor. <pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><table style="font-family: Arial, sans-serif; font-weight: normal; font-size: 14px;" width="600" border="0" cellspacing="0" cellpadding="0" align="center"> [start_time] on [start_date] and runs until [end_time] on [end_date]. Phone: [location_phone] Google Map: [google_map_link] We hope that you will find this event both informative and enjoyable. Should you have any questions, please contact [contact]. If you have not done so already, please submit your payment for the following amount: ——— [cost] ——— Click here to review your payment information: [payment_url]. Click here to edit your payment information: [edit_attendee_link] Thank You.</td> </span><span style="font-size: 22px;">0118 909 4731</span><span style="color: #fff;">Email: </span><span style="color: #fff;">info@imageframe.co.uk</span></td> Soane Point 6-8 Market Place Reading Berkshire RG1 2EG</td> This is the code from the sent email. <pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><table width="600" cellspacing="0" cellpadding="0" border="0" align="center" style="font-family:Arial, sans-serif;font-weight:normal;font-size:14px;"> |
Hi there, I’ve seen this happen before where the theme or another WordPress plugin adds a filter to the wpautop function (usually to make column shortcodes work). The unintended consequence is it changes a normal line break into a break tag. You can rule these out one by one: |
|
|
Thanks for the advise. I tried the emails while I disabled all plugins and changed the theme back to twenty12 but the extra tags were still added. |
|
Sorry I should explain more clearly. Rows of <br> tags are being added to the sent email, also new classes are being added to the table elements. e.g ‘ecxbodyCell’. The emails created in the ‘Manage Event Emails’ are unaffected. Example code. <pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><td valign="top" align="center" id="ecxbodyCell"><br> |
Hi Geoff, Can you let us know what plugins are installed on this site? The other idea I have is these may be added by the mailserver. In which case you could try routing the email through a gmail account with the WP Mail SMTP plugin. |
|
|
Hi Josh These are the plugins I have installed. Advanced Custom Fields I don’t believe these tags are added by the mailserver as the HTML email I’ve created in the ‘Email Manager’ is output correctly. Kind regards |
Hi Geoff, If you go in to edit the custom confirmation emails and view the email in Text edit mode (not visual) do the line breaks appear there? |
|
|
No the line breaks don’t appear. |
In that case, it may help to send a copy of your wp_options table if that’s possible so we can investigate further. If we can find out whether these are in the email options that get saved to the database it will help narrow down what’s causing the issue. Can you send an export of the wp_options table to our support email address? It’s support@eventespresso.com |
|
Hi Geoff, I looked in the database export you sent and I can confirm that the extra break tags and id names like ecxbodyCell are not in the database. There are two instances of “bodyCell”, so I’m not sure what is adding the ecx part or the extra line breaks. I copy the email content into a test site that’s using WP SMTP and a gmail account to send emails and the extra line breaks are not being added there either. I can advise trying out sending the email via another means than the server’s mailserver to narrow down the other issue. The only other place I can think of where this might be affected is when the email gets processed through the wpmail() function, but I think you’ve ruled that out by testing this with the default theme active and the other plugins deactivated. |
|
The support post ‘Custom Confirmation Emails adding extra line breaks’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.