slibob Posted March 7, 2007 Share Posted March 7, 2007 Hi I have a simple sendmail.php page, seems to run ok, but the mail never actually arrives! Is it something in my php.ini file I need to do? This is the sendmail.php script: <? $email = $_GET['email'] ; $message = $GET['message'] ; $name = $_GET['name'] ; mail("[email protected]","$name",$message,"From: $email" ); header( "Location:contactdone.php" ); ?> It runs from http://www.badgeshop.net/contact.php, the script for that is: <?php include 'lib/config.php'; include 'lib/opendb.php'; ?> <html> <head> <title>BadgeShop.net</title> <link rel=stylesheet type="text/css" href="/lib/style.css"> <body> <p align=center> <a href="http://www.badgeshop.net"><img src="images/main.jpg" alt="BadgeShop.net" border=0></a><br/> <img src="images/slogan.jpg" alt="The place to buy badges on the net!"></p> <hr/> <p align=center> <a href="index.php"><img src="images/m-home.jpg" border=0></a> <a href="info.php"><img src="images/m-info.jpg" border=0></a> <a href="prices.php"><img src="images/m-prices.jpg" border=0></a> <a href="showcart.php"><img src="images/m-basket.jpg" border=0></a> <a href="contact.php"><img src="images/m-contact.jpg" border=0></a><br><br></p> <p align=center> <form method=GET action="sendmail.php"> <table width="500" align="center" border="0"> <tr> <td width="70" valign="top"> <h1>Name:</h1> </font> </td> <td> <input type="text" size="53" name="name"> </td> </tr> <tr> <td width="70" valign="top"> <h1> Email:</h1> </td> <td> <input type="text" size="53" name="email"> </td> </tr> <tr> <td width="70" valign="top"> <h1> Message:</h1> </td> <td> <textarea name="message" cols=40 rows=7 wrap=virtual></textarea> </td> </tr> <tr> <td></td> <td> <input type="submit" name="submit" value="Send"> <input type="reset" name="reset" value="Reset"> </td> </tr> </table> </form> </td></tr> </table> </p> </body> </html> It successfully goes through to contactdone.php, but the mail never arrives! Can anyone help? This is my php.ini file: http://www.badgeshop.net/php.ini - (its obviously a copy of my php.ini file) Thanks! Link to comment https://forums.phpfreaks.com/topic/41622-sendmailphp-not-doing-anything/ Share on other sites More sharing options...
trq Posted March 7, 2007 Share Posted March 7, 2007 Is it something in my php.ini file I need to do? Not sure. Do you have access to a mail server? Link to comment https://forums.phpfreaks.com/topic/41622-sendmailphp-not-doing-anything/#findComment-201656 Share on other sites More sharing options...
redarrow Posted March 7, 2007 Share Posted March 7, 2007 [mail function] ; For Win32 only. SMTP = auth. smtp_port = 25 ; For Win32 only. ;sendmail_from = [email protected] <<<<you@your_isp,com Link to comment https://forums.phpfreaks.com/topic/41622-sendmailphp-not-doing-anything/#findComment-201679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.