You’ve activated the email function using stmp (see this post ) in your localhost xampp/wamp and you still can’t send mails ?
This is maybe due to the fact that your ISP requires username/password authentication, this how to proceed:
- Open your php.ini file (xampp\apache\bin\php.ini for xampp users), in [mail function] comment out the entire “Win32 only”section and uncomment the “Unix only” (sendmail) section:
- Download this version of sendmail and replace your current sendmail file (\xampp\sendmail\sendmail.exe for xampp users)
- Open your sendmail.ini file (\xampp\sendmail\sendmail.ini for xampp users) and fill in the appropriate fields:
- Save and restart xampp/wamp
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = “c:\…\sendmail\sendmail.exe -t”
smtp_server=
smtp_port=
auth_username=
auth_password=
It should work.
wut about mac users?? i got all runing xampp and wordpress and i want to configure my wp smtp, i tryed with gmail. but didnt work im not sure if it is due im runing wp in localhost.
thx for any advice
Hi kike you’ve probably found the answer , however in general mail() sending problems in Mac are related to postfix, these articles should help:
http://jspr.tndy.me/2008/05/php-mail-and-osx-leopard/
http://theandystratton.com/2009/fix-phps-mail-function-after-latest-os-x-leopard-update