Posted: April 5, 2019 at 11:19 am
|
Hi – our host has just updated to Php 7, and we find that the event registration tickets are generated as code gibberish. I have a text zip file I can share for analysis and trouble should, but basically, it’s a lot like this: X-PHP-Originating-Script: 679:class-phpmailer.php =0A<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://w= ww.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>=0A<html xmlns=3D”http://w= ww.w3.org/1999/xhtml” style=3D”margin: 0; padding: 0; font-family: ‘Helveti= ca Neue’, ‘Helvetica’, Helvetica, Arial, sans-serif;”>=0A <head style=3D”m= and so forth. We’ve downgraded back to Php 5.6 and the problem goes away… |
When they update the server to newer PHP, maybe they can also update to a newer version of PHPmailer? PHPMailer 5.2.22 is an older version. Otherwise, you could switch to use a transactional email service like one of the recommended providers listed here: https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/ |
|
|
Hello – we just finished a support chat with our host and they pointed out phpmailer is not part of the hosting package. I see there’s a phpmailer in wordpress – we have the most recent version of everything so I assume that should be working. I ran across something online – do we have to do some sort of reset on the EE templates after we upgrade to 7? |
Hi, No you do not need to do some sort of reset on the Event Espresso templates. PHPmailer is not in WordPress. Your web host should be able to update the server’s PHPmailer version. If they cannot, then your other option is bypass the web host provided mail server and use a transactional email service instead. |
|
|
The host tech support said whatever they have wrapped up in php7 should work, and the problem is in files of our website somewhere. Has this problem been coming up regularly now that everyone is upgrading php to 7? We’re using Bluehost fyi. |
|
After the host told me that I did a bunch of research trying to figure out where the script is to try and fix, and kept running into this type of statement: PHPMailer is used by WordPress core to send email. You can find the code in the wp-includes/class-phpmailer.php core file. And when I check that file I see some code that looks very much like the top of the broken email. So I figured the host was telling me correctly. But I have no clue. |
Usually this happens when the emails are being marked as spam by one of the mailservers or it can also be to a poorly configured mailserver. It is also possible that another plugin is filtering wp_mail and causing the emails to be sent as plain text. For mail issues such as these we recommend using a transactional email service such as Mandill or PostMark to send mail. We have more information on these services here: https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/ If you try a transactional email service and find it does not fix this issue it is likely something else, like another plugin, is filtering wp_mail() and interfering with Event Espresso emails. |
|
The support post ‘Php upgrade issue?’ 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.