Categories
WordPress

WordPress set mail type to html

//Create function which will return content type function set_html_content_type() { return ‘text/html’; } //now add filter before wp-mail()

Categories
PHP

Sending MIME Mail with PHP

You can send email with PHP Mailer with attachment and MIME type, with help of following libraries 1)PHP Mailer you can download latest version from github Example: php require ‘class.phpmailer.php’; $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP $mail->Host = ‘smtp1.example.com;smtp2.example.com’; // Specify main and backup server $mail->SMTPAuth = true; // Enable […]