Jump to content

PHP Email - Help


tsilenzio

Recommended Posts

Ok i know how to send an email however I dont know how to do stuff in the email like make it bold and stuff i tried doing:

 

<?php
//code above
$subject = "Dragonball Z - Registration";
$message = "<html><body><b>Thank you for signing up.<b>\n";
$message .= "<br><br><i>Good luck and enjoy</i>\n";
$message .= "<br><i><b>Founder:</b> tsilenzio</i></body></html>";

mail($email, $subject, $message);
//code below
?>

 

and the rest is sent

Link to comment
https://forums.phpfreaks.com/topic/59564-php-email-help/
Share on other sites

try this:

 

  $headers="From:Your name<[email protected]>\n";

  $headers.="Content-Type:text/html;CHARSET=iso-8859-1\n";

                 

  $address="[email protected]"'

     

  $subject="subject";

 

$theMessage="the Message here";

 

  $msg="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"

\"http://www.w3.org/TR/html4/loose.dtd\"><html><head><title></title></head><body bgcolor=\"#D7D7D7\">".$theMessage."</body></html>";  //

 

Now mail it with $msg as the message!  That should work. 

Link to comment
https://forums.phpfreaks.com/topic/59564-php-email-help/#findComment-295985
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.