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.