make mail.php
<?php echo $_REQUEST['msg']; ?>
<form method='post' action='mailform.php'>
Email: <input name='email' type='text' /><br />
Name: <input name='name' type='text' /><br />
Telephone: <input name='telephone' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>
make mailform.php
<?php
$mail_to="abid@ptiwebtech.com";
$sub="Contact Information";
$msg="<table border='1' cellspacing='5' cellpadding='5' align='center' width='600px'>
<tr><td colspan='5' align='center'>Contact Information</td></tr>
<tr>
<td align='center'>Name</td>
<td>". $_REQUEST['name']."</td>
</tr>
<tr>
<td align='center'>E-Mail</td>
<td>".$_REQUEST['email']."</td>
</tr>
<tr>
<td align='center'>Message</td>
<td>".$_REQUEST['message']."</td>
</tr>
<tr>
<td align='center'>telephone</td>
<td>".$_REQUEST['message']."</td>
</tr>
</table>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .="From: ".$_REQUEST['email'];
ini_set("SMTP","ptiwebtech.com");
ini_set("smtp_port","25");
mail($mail_to,$sub,$msg,$headers);
$msg='thank for contact';
print("<script>window.location='mail.php?msg=$msg'</script>");
//info@essveecollection.com
?>
<?php echo $_REQUEST['msg']; ?>
<form method='post' action='mailform.php'>
Email: <input name='email' type='text' /><br />
Name: <input name='name' type='text' /><br />
Telephone: <input name='telephone' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>
make mailform.php
<?php
$mail_to="abid@ptiwebtech.com";
$sub="Contact Information";
$msg="<table border='1' cellspacing='5' cellpadding='5' align='center' width='600px'>
<tr><td colspan='5' align='center'>Contact Information</td></tr>
<tr>
<td align='center'>Name</td>
<td>". $_REQUEST['name']."</td>
</tr>
<tr>
<td align='center'>E-Mail</td>
<td>".$_REQUEST['email']."</td>
</tr>
<tr>
<td align='center'>Message</td>
<td>".$_REQUEST['message']."</td>
</tr>
<tr>
<td align='center'>telephone</td>
<td>".$_REQUEST['message']."</td>
</tr>
</table>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .="From: ".$_REQUEST['email'];
ini_set("SMTP","ptiwebtech.com");
ini_set("smtp_port","25");
mail($mail_to,$sub,$msg,$headers);
$msg='thank for contact';
print("<script>window.location='mail.php?msg=$msg'</script>");
//info@essveecollection.com
?>
No comments:
Post a Comment