Formatting E-mail With PhP?
Hartmann
Fort Bend Internet Designs (http://www.fbid.net)
$msg .="Received from:t $Cname n";
$msg .="Phone No:t $Cphone n";
$msg .="Fax No:t $Cfax n";
$msg .="E-mail:t $Cmail n";
$recipient ="info@************.com.au";
$subject = "$Csubject";
$mail_headers ="From: ********** MailerDaemon <>n";
$mail_headers .="Reply to: $Cmailn";
mail ($recipient,$subject ,$msg ,$mail_headers);
$Orecipient ="*****@*********.com.au";
mail ($Orecipient,$subject ,$msg ,$mail_headers);
Where $Cname ,Cfax etc is form input ie:
t is a newline t is a tab! you can also get PHP to generate HTML output for e-mail its just a matter of adding the appropriate headers etc.
(The form above mails to 2 recipients)
Play around with it - its heaps easier and more customisable than PERL.
check it out @ php.net
for example:
you post a form with name and address in it
at the receiving end you can just loop through $HTTP_POST_VARS and format then Vars nciely on the page (or in ths case the mail)
I'm sure someone has already done this, do a trawl on one of the script sites like weberdev.net
regs
Thank you,
#If you have any other info about this subject , Please add it free.# |

