burnedfaceless
asked on
HTML emails are not rendering properly
I am trying to send a HTML email to reset passwords. The problem is that the emails are just displaying the HTML just as a text reader would. Both in Gmail and in Office 365.
Here is my code.
Here is my code.
<?php
$message = '
<html>
<head>
<title>Reset Your Password</title>
</head>
<body>
<h1>Thanks for being a customer.</h1>
<h2>This link can only be used one time for security purposes.</h2>
<table cellspacing="0" style="border: 2px dashed #FB4314; width: 300px; height: 200px;">
<tr>
<th>Name:</th><td>CodexWorld</td>
</tr>
<tr style="background-color: #e0e0e0;">
<th>Email:</th><td>email@domain.com</td>
</tr>
<tr>
<th>Reset Link:</th><td><a href="http://accounts.effinghamministorage.com/resetpassword.php?hex=' . $hex . '">Reset Password</a></td>
</tr>
</table>
</body>
</html>';
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER