tsilenzio Posted July 12, 2007 Share Posted July 12, 2007 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 More sharing options...
phpknight Posted July 12, 2007 Share Posted July 12, 2007 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 More sharing options...
tsilenzio Posted July 12, 2007 Author Share Posted July 12, 2007 Thank you I will try that RIGHT away!!! lol just wondering did u copy and paste <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" or did u actally remember that? always tried never could =( Link to comment https://forums.phpfreaks.com/topic/59564-php-email-help/#findComment-295986 Share on other sites More sharing options...
phpknight Posted July 12, 2007 Share Posted July 12, 2007 LOL. Yeah, I just copied that directly from my application and changed variable names and such. Link to comment https://forums.phpfreaks.com/topic/59564-php-email-help/#findComment-296029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.