- Code: Select all
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\yo\sendmemailbitch.php on line 30
So I go to php.ini-dist and editing some stuff....
- Code: Select all
[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 587
; For Win32 only.
;sendmail_from = kingtisherenukkah1@gmail.com
Still won't work, I'm still getting the same error about localhost and port 25 even though I changed it....
So then I tried editing php.ini-recommended with the same details and I still get the same error. I don't get it, I also tried turning off my firewall. Is there any way to get this to work? By the way I'm using xampp (Basispaket) version 1.7.1