Help with variables in email

From: Date: Mon, 18 Nov 2002 13:46:43 +0000
Subject: Help with variables in email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124904@lists.php.net to get a copy of this message
I am trying to send an email with form vars inside it but I cannot seem to get the vars to be parsed. Here is my code: /* message */ $message = ' <html> <head> <title>Products Purchased:</title> </head> <body> <p>Customer Information:</p> <table> <tr> <td>Name</td> <td>{$name}</td> </tr> <tr> <td>Title</td> <td>.$title.</td> </tr> <tr> <td>Email</td> <td>.$email.</td> </tr> <tr> <td>Company</td> <td>.$company.</td> </tr> <tr> <td>Phone</td> <td>.$phone.</td> </tr> <tr> <td>Fax</td> <td>.$fax.</td> </tr> <tr> <td>Address</td> <td>.$address.</td> </tr> <tr> <td>City</td> <td>.$city.</td> </tr> <tr> <td>State</td> <td>.$state.</td> </tr> <tr> <td>Postal Code</td> <td>.$postalcode.</td> </tr> <tr> <td>Country</td> <td>.$country.</td> </tr> <tr> <td colspan=2>&nbsp;</td> </tr> <tr> <td colspan=2>Billing Information</td> </tr> <tr> <td>Card Type</td> <td>.$methodofpay.</td> </tr> <tr> <td>Card Name</td> <td>.$cardname.</td> </tr> <tr> <td>Exp Date</td> <td>.$cardexp.</td> </tr> </table> </body> </html> '; This outputs this: Customer Information: Name {$name} Title .$title. Email .$email. Company .$company. Phone .$phone. Fax .$fax. Address .$address. City .$city. State .$state. Postal Code .$postalcode. Country .$country. Billing Information Card Type .$methodofpay. Card Name .$cardname. Exp Date .$cardexp. Please help me figure this out. I know its simple, but I cannot see it ;) Thanks, Clint

« previous php.general (#124904) next »