note 46935 added to function.mail

From: Date: Thu, 28 Oct 2004 06:12:38 +0000
Subject: note 46935 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-79227@lists.php.net to get a copy of this message
First off, yes i know this is not the place for questions but I cannot find help anywhere else. With that said, I have php installed on my PC as well as an apache webserver and mysql. I am using cox.net as my cable internet provider. They block port 25 but I do not know if that affects what I am trying to do... which is: use the mail() function to send email for my user activation script. I am trying to test everything for my website on my computer before I pay for hosting. When I run the registration script I get this: Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\Apache Group\Apache2\htdocs\campushotties\reghandle2.php on line 137 now the funny thing is i have the following code in my php.ini file: [mail function] ; For Win32 only. SMTP = smtp.east.cox.net smtp_port = 25 ; For Win32 only. sendmail_from = pphill2@hotmail.com from the error message one would think that the email would be delivered but with a bad "From" address field. However, nothing is delivered. I also tried switching the smtp_port to port 26.. that didnt work either. Thanks for any help, Pat ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46935 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46935&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46935&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46935&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46935&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46935&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46935&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46935&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79227) next »