Jump to content

PHP mail not sending HTML


AbydosGater

Recommended Posts

Hi,
Ive been working on my registration system for my website, and i want to be able to send the user an email on registration...

In my config file i have..
[code]
<?php
$registration_email_user = "
<html>
<p><b>Shadow Fleet Registration.</b></p>
<p>Thank you, for registering with Shadow Fleet, you have completed step one of
  your registration process.<br>
  You have registered your account with the following information...</p>
<p>Username: $username<br>
  Password: $password<br>
  Email Address: $email<br>
  <br>
  You must keep your password safe, it has been encrypted in our database and
  cannot be retrieved.<br>
  <br>
  You registered with the following IP address: $ipaddress<br>
  Your IP has been logged in our system, and has been stopped from registering
  multiple accounts.<br>
  If you think your IP should be allowed to register another
  account please contact a member of the Admin team.</p>
<p>Your account is not yet completely active,<br>
  To activate your account please click the link below.</p>
<p>http://shadowfleet.info/newversion/register.php?step=2&amp;&amp;uid=$member_id&amp;&amp;acode=$acode</p>
<p>Thank you,<br>
  Shadow Fleet Administrations Team.</p>
</html>
";
?>
[/code]

And the line of code in my script is..

mail($email, "Shadow Fleet Registration", "$registration_email_user", "FROM: Shadow Fleet Systems");

Now the email is being sent to the user, just its not formatting as HTML just all one long string? is there any way to get the email to send as HTML?

Thanks
Link to comment
https://forums.phpfreaks.com/topic/28274-php-mail-not-sending-html/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.