RE: sending values in email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I hope this could be of great help as I'm using it.
 
I'm posting you the code for your ease as in my time I had to search a lot to get this thing working.
 
I hope it helps.
 
Ankit Mathur
 
<?php$to="info@xxxxxxx";if($_POST['home']=='home'){ $subject=$_POST['txtname']." completed the Contact Us form!";
$msg = '<html><body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" bgcolor="#99CC00" >
<STYLE><!-- .headerTop { background-color:#FFCC66; border-top:0px solid #000000; border-bottom:1px solid #FFFFFF; text-align:center; } .adminText { font-size:10px; color:#996600; line-height:200%; font-family:verdana; text-decoration:none; } .headerBar { background-color:#FFFFFF; border-top:0px solid #333333; border-bottom:10px solid #FFFFFF; } .title { font-size:20px; font-weight:bold; color:#CC6600; font-family:arial; line-height:110%; } .subTitle { font-size:11px; font-weight:normal; color:#666666; font-style:italic; font-family:arial; } .defaultText { font-size:12px; color:#000000; line-height:150%; font-family:trebuchet ms; } .footerRow { background-color:#FFFFCC; border-top:10px solid #FFFFFF; } .footerText { font-size:10px; color:#996600; line-height:100%; font-family:verdana; } a { color:#FF6600; }//--></STYLE>
<table width="100%" height="100%" cellpadding="10" cellspacing="0" class="backgroundTable" bgcolor="#99CC00"> <tr>  <td valign="top" align="center">  <table width="550" cellpadding="20" cellspacing="0" bgcolor="#FFFFFF">   <tr>    <td height="66" valign="top" bgcolor="#FFFFFF" style="font-family:trebuchet ms;line-height:150%;font-size:12px;color:#000000;"><p><img src="http://www.parsvtechindia.com/images/Contact_us.gif"; alt="Request For Quote"></p>    <table border="0" width="500" cellpadding="0" cellspacing="0">     <tr>      <td width="500" align="center" valign="top" bgcolor="#F2F4F5" style="border:1px solid #A7CFEB;">      <table border="0" width="100%" cellpadding="5" cellspacing="3" class="contact_details">       <tr>        <td style="padding-left:40px;">&nbsp;</td>        <td style="padding-left:80px;">&nbsp;</td>       </tr>       <tr>        <td style="padding-left:40px;">First Name</td>        <td style="padding-right:80px;">'.$_POST[txtname].'</td>       </tr>       <tr>        <td style="padding-left:40px;">E-Mail Address</td>        <td style="padding-right:80px;">'.$_POST[txtemail].'</td>       </tr>      </table></td>     </tr>    </table></td>   </tr>  </table>  </td> </tr></table>
</body></html>';  // To send HTML mail, the Content-type header must be set $headers  = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";  // Additional headers $headers .= 'From: '.$_POST['txt_name'].' <'.$_POST['txtemail'].'>' . "\r\n" .    'Reply-To: '.$_POST['txtemail']. "\r\n" .     'X-Sender: <'.$_POST['txtemail'].'>\r\n' .    'X-Priority: 1\r\n' .    'Return-Path: <'.$_POST['txtemail'].'>\r\n' .    'X-Mailer: PHP/' . phpversion();
 
 // Mail it
 mail($to, $subject, $msg, $headers);
}?>


To: php-objects@xxxxxxxxxxxxxxxxxxx: umer.zuberi@xxxxxxxxxxxxx: Mon, 17 Dec 2007 06:11:12 +0000Subject:  sending values in email




i have design forum for my client for querys and segguests and i need to redirect all data in to my email with all desciprion with client name .. in phpkindly reply me soon regrads 






_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=219

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux