View Single Post
  #1 (permalink)  
Old Jul 20th, 2007, 16:51
David Blake David Blake is offline
Junior Member
Join Date: Nov 2005
Location: Wisconsin
Age: 38
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Very basic Email content formatting PHP

I really know nothing at all about PHP language but I have this set up in an email php file that takes from a flash file. My question is how can I format this so that it doesn't just list the info. For instance, I would like it to display the information in the email like this:

Name: First, Last
Email: Email
Phone: Area-Phone
Message: Message

With each of these, the variable is shown after the ":"
PHP: Select all

<?
 
   $to 
"dblake@kiddykiosk.com";
$subject "Kiddy Kiosk Inquiry";
    
$msg "$First\n\n";
   
$msg .= "$Last\n\n";
   
$msg .= "$Area\n\n";
   
$msg .= "$Phone\n\n";
   
$msg .= "$Message\n\n";

  
mail($to$subject$msg"From: Kiddy Kiosk Contact \nReply-To: $Email\n");

?>
Thanks,
Dave

Last edited by karinne; Jul 23rd, 2007 at 15:00. Reason: Please use [php]...[/php] tags when displaying PHP code!
Reply With Quote