vivek
06-23-2001, 03:22 AM
I am using this code
<? // start of php code here
$emailfrom="Davinci FormMail<formmail@davinci.co.nz>";
$recipient="viveks@davinci.co.nz";
// $recipient="timw@radiopie.co.nz";
$subject="Web Request: Contact Info";
$content="\r\nName: $salutation $fname $middleinit $lname \r\nCompany: $company \r\nEmail: $email \r\nPhone: $phone \r\nFax: $fax \r\nStreet Address: $street \r\n $street2\r\n $street3\r\nCity: $city \r\n\r\nAdd to E-news: $e_news\r\nRequest Schedule: $schedule";
mail($recipient, $subject, $content, "From: $emailfrom\r\nReply-To: $recipient\r\nX-Mailer: Davinci Solutions FormMail");
// end nice message (else) .
?>
<TABLE BORDER="0" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR><TD>
<FONT color="#669966" FACE="Helvetica, Arial" SIZE=4>
<B>
Thank you, <? echo $fname; ?> for your request.</B>
</TD></TR></TABLE>
but has not been able to achieve target. I tried echoing name of sender for thanks but couldn't. Pls help
<? // start of php code here
$emailfrom="Davinci FormMail<formmail@davinci.co.nz>";
$recipient="viveks@davinci.co.nz";
// $recipient="timw@radiopie.co.nz";
$subject="Web Request: Contact Info";
$content="\r\nName: $salutation $fname $middleinit $lname \r\nCompany: $company \r\nEmail: $email \r\nPhone: $phone \r\nFax: $fax \r\nStreet Address: $street \r\n $street2\r\n $street3\r\nCity: $city \r\n\r\nAdd to E-news: $e_news\r\nRequest Schedule: $schedule";
mail($recipient, $subject, $content, "From: $emailfrom\r\nReply-To: $recipient\r\nX-Mailer: Davinci Solutions FormMail");
// end nice message (else) .
?>
<TABLE BORDER="0" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR><TD>
<FONT color="#669966" FACE="Helvetica, Arial" SIZE=4>
<B>
Thank you, <? echo $fname; ?> for your request.</B>
</TD></TR></TABLE>
but has not been able to achieve target. I tried echoing name of sender for thanks but couldn't. Pls help