UWRP Posted September 7, 2020 Share Posted September 7, 2020 How do I send a html mail using php mailer? Currently it's sending a plain text mail. The actual html code. My code: SendMailEx($mail, "Your new password", $content); // inside func above $headers = 'From: ***' . "\r\n" . 'Reply-To: ***' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); Thank you Quote Link to comment https://forums.phpfreaks.com/topic/311445-php-mailer-how-to-send-html-mail/ Share on other sites More sharing options...
requinix Posted September 8, 2020 Share Posted September 8, 2020 That is not PHPMailer. That is regular mail. Find, download, and use PHPMailer. Read the manual and they will tell you how to send HTML emails. Quote Link to comment https://forums.phpfreaks.com/topic/311445-php-mailer-how-to-send-html-mail/#findComment-1581225 Share on other sites More sharing options...
Strider64 Posted September 8, 2020 Share Posted September 8, 2020 Another nice 3rd Party email is Swiftmailer Swiftmailer I personally found it easier to setup though PHPMailer is just a good. Quote Link to comment https://forums.phpfreaks.com/topic/311445-php-mailer-how-to-send-html-mail/#findComment-1581240 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.