OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Email in PHP
This page's ID:
28047
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I have created a simple form to be sent via email in PHP> i have previously done the same stuff and worked perfect. But now i m trying make another form work in vain! _____________________ FORM1--__________________________ <form name="form1" method="post" action="submit1.php"> <table width=100% border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#BACDFA"> <tr valign="top"> <td height="20" width="356" bgcolor="#BACDFA"><div align="center" class="a11g style32"> <div align="left">Contact Name:</div> </div></td> <td width="339" bgcolor="#BACDFA"><div align="center" class="a11g style32"> <div align="left">Telephone:</div> </div></td> <tr valign="top"> <td width="356" bgcolor="#BACDFA"><font size="2" color="#4f4f4f" face="Arial"> <input name="name" value="" size=300 style="height:20; width:186; color: #1830B0; background:#ffffff ; border-style: solid; border-width: 1px; border-color: #3366CC;"> </font></td> <td width="339" bgcolor="#BACDFA"><font size="2" color="#4f4f4f" face="Arial"> <input name="tel" value="" size=300 style="height:20; width:186; color: #1830B0; background: #ffffff; border-style: solid; border-width: 1px; border-color: #3366CC;"> </font></td> </tr> <tr> <td class="a11g style32">E-Mail Address:</td> <td><input name="email" type="text" class="formbox" value="" id="email" style="width:250px;"></td> </tr> <tr> <td height="31" align="center"><div align="center"> <input name="Submit" type="image" id="Submit" src="images/send.jpg" width="59" height="20" border="0"> </div></td> <td width="1%" align="center"> </td> </tr> </table> </form> ------------------------------------------- submit1.PHP ------------------------ <?php include("connection.php"); $msg.="Name :\t$HTTP_POST_VARS[name]<br>"; $msg.="Telephone :\t$HTTP_POST_VARS[tel]<br>"; $msg.="Email :\t$HTTP_POST_VARS[email]<br>"; $to="trial@company.co.uk"; $subject= "Online Form" .$HTTP_POST_VARS['email']; $headers.= "Reply-To: ".$HTTP_POST_VARS['email']; $headers.="MIME-Version: 1.0\r\n"; $headers.="Content-type: text/html; charset=iso-8859-1\r\n"; $headers.="From:".$HTTP_POST_VARS['email']; mail($to,$subject,$msg,$headers); ?> ------ THE PROBLEM IS: the form works well, but i don t seem to receive the email once the form is submitted. if i send a mail from hotmail to the email account i receive it. but through this form i am not receiving any emails. can anybody help?? Thanks a ton.. S
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail