Andy2024 Posted Monday at 12:00 PM Share Posted Monday at 12:00 PM PhpMailer is not sending html emails even with isHTML set to true $mail->Body = $message; $mail->isHTML(true); $mail->isHTML = true; if(!$mail->Send()) { return $mail->ErrorInfo; } Here is the html message <!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Site Title</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> I've tried to find a solution by searching but all everyone is saying is add $mail->isHTML(true); or $mail->isHTML = true; i have commented each out individually but still doesn't send html emails Any help at all would be much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/327779-phpmailer-not-sending-html/ Share on other sites More sharing options...
Solution Andy2024 Posted Monday at 01:53 PM Author Solution Share Posted Monday at 01:53 PM I've downloaded the latest release of PhpMailer and all is fine now Quote Link to comment https://forums.phpfreaks.com/topic/327779-phpmailer-not-sending-html/#findComment-1653875 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.