Support

Home Forums Event Espresso Premium Confirmation Emails **!!!! HTML

Confirmation Emails **!!!! HTML

Posted: September 12, 2012 at 9:14 am


Candi Stroh

September 12, 2012 at 9:14 am

On the email confirmations that my attendee is receiving, the emails are showing the HTML tags and it’s not formatting using the tags. I did create a custom email for the events and I have tried to update that email to reflect no tags, but it still doesn’t work. Also, when i was testing this before making it LIVE i didn’t have these problems. Can you please help me to correct this issue as it is very hard for our Members to read?


Seth Shoultes

  • Support Staff

September 12, 2012 at 9:51 am

Candi,

Which event is it? I can’t seem to register for any of your events.


Candi Stroh

September 12, 2012 at 9:55 am

Its the HBAA Annual Convention, its close to the bottom, but here is the link, its not protected and you should be able to register.
http://hbaa.org/wp/events/annual-convention


Candi Stroh

September 12, 2012 at 10:20 am

Got your registration. Did you receive yours and how was the email? Because this is what I got:

HBAA Annual Convention registration confirmation

Registration Summary:

Primary Attendee
Seth Shoultes
seth@eventespresso.com
0.02
HBAA Annual Convention |
November 8, 2012 – November 10, 2012
7:00 am – 10:00 pm
1 attendee


Candi Stroh

September 12, 2012 at 10:21 am

Awe shoot, this forum corrected the tags 🙁


Seth Shoultes

  • Support Staff

September 12, 2012 at 10:29 am

This is what I got:
http://www.screencast.com/t/fGVkveiXG

Looks like something on your site is modifying the output of the email content.

Were you on a different server before going live?


Candi Stroh

September 12, 2012 at 10:29 am

Its still doing it, do you need my login information so that you can check on things or do you have it already?


Candi Stroh

September 12, 2012 at 10:30 am

No not on a different server. Had some server problems last week, but everything seems to be resolved and I couldn’t view that link.


Candi Stroh

September 12, 2012 at 10:35 am

I was able to see your screenshot. Yes that is what I am getting too, it’s not suppose to do that and I don’t know why it is?


Seth Shoultes

  • Support Staff

September 12, 2012 at 10:35 am

I removed the email content and this is what I got:
http://www.screencast.com/t/vKwBphMEjjtT

Might be something is wrong with your server or maybe another plugin. Not sure at this point. We would have to debug directly on your server and/or possibly contact your web host. Or maybe test on a different server.


Seth Shoultes

  • Support Staff

September 12, 2012 at 10:39 am

I turned full logging on in your settings. We can try to see if that shows us anything. the logs will be in your wp-content/uploads/espresso/logs/ directory.


Candi Stroh

September 12, 2012 at 10:47 am

Ok maybe the logs will show something. I have notified my host agent about this so maybe I’ll get some answers soon.


Seth Shoultes

  • Support Staff

September 12, 2012 at 10:54 am

Do you have custom files installed for Event Espresso? Do you have something hooked into the wp_mail filter?


Seth Shoultes

  • Support Staff

September 12, 2012 at 10:56 am

If you can… you want to look for something like this “wp_mail_content_type” if you find that in any of the code on your site (i.e. functions.php, custom-files etc.) then that means the content-type is being changed from text/html to text for outgoing mails using wp_mail.


Seth Shoultes

  • Support Staff

September 12, 2012 at 10:59 am

“wp_mail_content_type” just means there is something on your site that modifies content_type of emails. And it’s likely that it’s beings changed to text/plain.

If you look at your email src you should be able to see what content type it was sent as.


Seth Shoultes

  • Support Staff

September 12, 2012 at 11:02 am

Yep, there it is:
http://www.screencast.com/t/ycammWIs

Something is hooking into that wp_mail filter and changing it from text/html (which is what EE sets it at). OR you’ve got something in custom-files that is modifying the content-type for outgoing emails…


Candi Stroh

September 12, 2012 at 11:03 am

No i don’t have custom files installed. Yesterday I was working on creating a child theme for my theme, but i didn’t change or move anything and the child theme isn’t installed. I just removed it from my server and tested it again and still go the html code in email. So I will look through my functions.php in EE and my them and WP and see if I can find anything.


Seth Shoultes

  • Support Staff

September 12, 2012 at 11:13 am

You might try finding a simple plugin to test sending out an html email using wp_mail.


Candi Stroh

September 12, 2012 at 11:30 am

Did you happen to download a plugin called Adminer? I just saw it and I didn’t put that there neither did my host? Weird.


Seth Shoultes

  • Support Staff

September 12, 2012 at 11:40 am

Yes, that was me. You can remove it. I was using it to look in the database to see the raw data stored for the custom emails.


Candi Stroh

September 12, 2012 at 12:01 pm

oh ok. I still haven’t been able to find this problem yet.


Seth Shoultes

  • Support Staff

September 12, 2012 at 12:03 pm

It could be an issue with the mail server. I would check those settings on the server if you have access.


Candi Stroh

September 12, 2012 at 12:05 pm

Well the thing is, is that my New User emails are coming in just fine. So it couldn’t be the mail server, these emails from EE are the only things that are showing up text/plain.


Candi Stroh

September 12, 2012 at 12:06 pm

Could it be in my theme?


Candi Stroh

September 12, 2012 at 12:40 pm

I think i finally found it! pluggable.php
This is the commented out section:
/**
* Send mail, similar to PHP’s mail
*
* A true return value does not automatically mean that the user received the
* email successfully. It just only means that the method used was able to
* process the request without any errors.
*
* Using the two ‘wp_mail_from’ and ‘wp_mail_from_name’ hooks allow from
* creating a from address like ‘Name ‘ when both are set. If
* just ‘wp_mail_from’ is set, then just the email address will be used with no
* name.
*
* The default content type is ‘text/plain’ which does not allow using HTML.
* However, you can set the content type of the email by using the
* ‘wp_mail_content_type’ filter.
*
* The default charset is based on the charset used on the blog. The charset can
* be set using the ‘wp_mail_charset’ filter.

Problem is I don’t know how to change this?


Candi Stroh

September 12, 2012 at 1:56 pm

FINALLY Got it fixed. You were right, it was a custom_function in the THEME folder. SO I added this:

AND IT FIXED IT. OMG!!!!! Thank you so very much for helping me today!

The support post ‘Confirmation Emails **!!!! HTML’ 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.

Event Espresso