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 Quote Link to comment Share on other sites More sharing options...
phpknight Posted July 12, 2007 Share Posted July 12, 2007 try this: $headers="From:Your name<example@abc.com>\n"; $headers.="Content-Type:text/html;CHARSET=iso-8859-1\n"; $address="mailtome@abc.com"' $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. Quote Link to comment 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 =( Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.