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
Share on other sites

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. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.