Dear friends
I am trying to sendd a mail from my php code:
php gives a message that the mail was send successfully but nothing is actually sended.("i receive nothing")
Thanks you for the help!
My phpinfo() is saying
Configuration File (php.ini) Path no value
Loaded Configuration File C:\aptana\xampp-win32-1.7.3\xampp\php \php.ini
My php.ini
sendmail.ini
logfile "\aptana\xa mpp-win32-1.7.3\xampp\sen dmail\sendmail. log"
smtp_server=smt p.aol.com
smtp_port=587
auth_username=b besa@aol.com
auth_password=p assword1234
I am trying to sendd a mail from my php code:
php gives a message that the mail was send successfully but nothing is actually sended.("i receive nothing")
Thanks you for the help!
Code:
$to = "bbesa@aol.com"; $subject = "BWI SHARE RESULTS!"; $body = $theData; $from="bbesa@aol.com"; $headers = "From: .$from"; if (mail($to,$subject,$message,$headers)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); }
Configuration File (php.ini) Path no value
Loaded Configuration File C:\aptana\xampp-win32-1.7.3\xampp\php \php.ini
My php.ini
Code:
[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = something.something.ac.za ; http://php.net/smtp-port smtp_port=234 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = 12552690@nwu.ac.za ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = “C:\aptana\xampp-win32-1.7.3\xampp\sendmail\sendmail.exe -t” ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename mail.add_x_header = Off ; Log all mail() calls including the full path of the script, line #, to address and headers mail.log = "\aptana\xampp-win32-1.7.3\xampp\apache\logs\php_mail.log"
logfile "\aptana\xa mpp-win32-1.7.3\xampp\sen dmail\sendmail. log"
smtp_server=smt p.aol.com
smtp_port=587
auth_username=b besa@aol.com
auth_password=p assword1234
Comment