Mail not sent when I set HTML headers
There’s the wp_mail() function in WordPress. The headers have to be added as array without trailing \n\r or similar. Example wp_mail( ‘[email protected]’, ‘Hello World!’, ‘Just saying…’, array( ‘MIME-Version: 1.0’, ‘Content-type: text/html; charset=iso-8859-1’, sprintf( ‘From: %s <no-reply@%s>’, get_bloginfo(‘name’), site_url() ), sprintf( ‘X-Mailer: PHP/%s’, phpversion() ), ) ); To change the content type you could as well … Read more