mail() not working in XAMPP1.7.3

Problems with the Windows version of XAMPP, questions, comments, and anything related.

mail() not working in XAMPP1.7.3

Postby shinokada » 20. May 2010 17:59

I am trying to send email with php mail() function.

It works without any problem in XAMPP1.7.1 but the same application does not work in XAMPP 1.7.3

I have the following SMTP set up in php.ini.

Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP = localhost

;For my school use
;SMTP = schoolmail.myschool.org

;For home use
SMTP = smtp.mybroadband.net

; http://php.net/smtp-port
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:\xampp173\sendmail\sendmail.exe\" -t"



I will appreciate your help.

Thanks in advance.
shinokada
 
Posts: 20
Joined: 19. February 2009 16:19

Re: mail() not working in XAMPP1.7.3

Postby JonB » 21. May 2010 01:56

Have you enabled error reporting?

what error messages are occurring?

check your syntax, see this:

viewtopic.php?f=16&t=40607

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: mail() not working in XAMPP1.7.3

Postby shinokada » 21. May 2010 06:57

Thanks for your reply.

How can I enable the error log?
shinokada
 
Posts: 20
Joined: 19. February 2009 16:19

Re: mail() not working in XAMPP1.7.3

Postby JonB » 21. May 2010 07:22

PHP supports multiple types of error reporting, including logging

http://www.php.net/manual/en/function.e ... orting.php

http://www.php.net/manual/en/function.error-log.php

these are reflected as well in php.ini. Just search for 'error' in php.ini (its all defaulted off in XAMPP)

Is this your own code? (grokking other's code is muy difícil) -- You might look for a function fix in PHP, 1.7.1 had PHP 5.2.9 and 1.7.3 has 5.3.1

After I wrote that I realized if it is not your code, you might want to find a different PHP example/psge/script that uses a mail function and test it. then you will know if its the script or your install of XAMPP/PHP. You also might diff the two php.ini files, to see if some other parameter is out of line.

http://php.net/ChangeLog-5.php

these are only my thoughts, no guarantees.

:mrgreen:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 81 guests