Tag Info

New answers tagged

1

wp_mail() falls back to php's mail() function which requires a configured MTA (Message Transfer Agent) on your host. So either you install and configure such a MTA. If you're running a Linux like OS, SSMTP is an easy solution on which you can use any mail-provider to send your system mails via SMTP. Another MTA would be Sendmail, a full featured, yet ...


0

As an alternative, you can specify the Content-Type HTTP header in the $headers parameter: $to = 'sendto@example.com'; $subject = 'The subject'; $body = 'The email body content'; $headers = array('Content-Type: text/html; charset=UTF-8'); wp_mail( $to, $subject, $body, $headers );


0

plugins_loaded is going to load this form much too early, even if you weren't getting errors. The form is loading before the opening <html tags. You need to select better hooks for this-- admin_notices maybe, but it is hard to tell exactly what you want. Second, you need to separate your handler: function process_wpse_194468() { if ...


1

I just released a plugin to let users use html templates on WordPress and Im playing right now on the dev version to add a simple text fallback. I did the following and in my tests I only see one boundary added and emails are arriving fine to Hotmail. add_action( 'phpmailer_init', array($this->mailer, 'send_email' ) ); /** * Modify php mailer body with ...



Top 50 recent answers are included