mail function does not work in 1.7.3 when it did in 1.6.3
Posted: 18. January 2011 13:21
Hi,
First of all, I have spent at least the last hour using the search facility to look at similar posts and still can't resolve. My computer is windows xp pro. Had xampp 1.6.3 before. Have now upgraded to 1.7.3. Previously in 1.6.3, I had changed the php ini file to use the smtp for our internet service provider. This worked just fine for php emailing using mail function. Have now upgraded to xampp 1.7.3 and made the change in php.ini again. I have then stopped and restarted the apache server thru the xampp control panel. My php emails using the mail function do not send. Why would this be?
212.23.3.98 is the ip for zen - our internet provider
the entry in php.ini is
[mail function]
; For Win32 only.
SMTP = 212.23.3.98
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"C:\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 = "C:\xampp\apache\logs\php_mail.log"
As you can see the mail log file is enabled and does write to it. However the email fails and does not send a basic test script email that I know would usually work. here is entry in mail log file
mail() on [C:\xampp\htdocs\email.php:14]: To: rupert_email@hotmail.com -- Headers: From: support@somecompany.com Reply-To: support@somecompany.com
Thanks for any help.
First of all, I have spent at least the last hour using the search facility to look at similar posts and still can't resolve. My computer is windows xp pro. Had xampp 1.6.3 before. Have now upgraded to 1.7.3. Previously in 1.6.3, I had changed the php ini file to use the smtp for our internet service provider. This worked just fine for php emailing using mail function. Have now upgraded to xampp 1.7.3 and made the change in php.ini again. I have then stopped and restarted the apache server thru the xampp control panel. My php emails using the mail function do not send. Why would this be?
212.23.3.98 is the ip for zen - our internet provider
the entry in php.ini is
[mail function]
; For Win32 only.
SMTP = 212.23.3.98
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"C:\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 = "C:\xampp\apache\logs\php_mail.log"
As you can see the mail log file is enabled and does write to it. However the email fails and does not send a basic test script email that I know would usually work. here is entry in mail log file
mail() on [C:\xampp\htdocs\email.php:14]: To: rupert_email@hotmail.com -- Headers: From: support@somecompany.com Reply-To: support@somecompany.com
Thanks for any help.