Error when requesting password reset email – wp authentication

I get the following error whenever a user tries to request a password reset email: The e-mail could not be sent. Possible reason: your host may have disabled the mail() function. As per recommendations I’ve read across the web, I tried several SMTP plugins. None worked. Finally, I got some debug information from one. First, … Read more

Mail not sent when I set HTML headers

$subject = get_the_title(); $sender_name = get_bloginfo(‘name’); $blog_url = get_bloginfo(‘url’); $to = ‘[email protected]’; $subject=”the subject”; $message=”hello”; $headers=”MIME-Version: 1.0″ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $headers .= ‘From: ‘.$sender_name.’ <no-reply@’.$blog_url.’>’ . “\r\n”; $headersssssssssssss=”From: [email protected]” . “\r\n” . ‘Reply-To: [email protected]’ . “\r\n” . ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n” . ‘X-Mailer: PHP/’ . phpversion(); When I … Read more

How to use ‘phpmailer_init’ SMTP settings only on certain ‘wp_mail’ actions?

Is there a conditional check I can run for phpmailer_init or a wp_mail parameter that let’s me apply my custom phpmailer_init SMTP settings only on specific wp_mail actions or does phpmailer_init always run sitewide? 1 Answer 1 phpmailer_init will always fire for every wp_mail() call – however, you can hook/unhook it conditionally like so: function … Read more