HTML in emails
Posted: Thu Dec 09, 2004 8:44 pm
Ok, I have an email that is being sent to users. How do I include HTML in it because right now it is actually displaying the html. My code is as follows:
Thanks!
Code: Select all
$subject = "Login Info.";
$emailbody = "
Here is your login information:
USERNAME: $_POST[username]
PASSWORD: alsdlf;jas;ldjf;lakshdfg
Your old password was reset to this default password. To change your password you must <a href='http://www.----.com'>Login</a>, then click on 'Update Your Profile.'
If you have any questions whatsoever, feel free to email the department head <a href='mailto:--@-----.com'>-- -----</a> or the <a href='mailto:---@-----.com>webmaster</a>.
-------------------------------------------
This is an automatically generated email. Please DO NOT respond.";
mail($email_result, $subject, $emailbody, "From: Webmaster");