Posts Tagged ‘localhost sendmail windows

26
Sep
10

cannot send mail from localhost using smtp (xampp/wamp)

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:

  1. 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:
  2. [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”

  3. Download this version of sendmail and replace your current sendmail file (\xampp\sendmail\sendmail.exe for xampp users)
  4. Open your sendmail.ini file (\xampp\sendmail\sendmail.ini for xampp users) and fill in the appropriate fields:
  5. smtp_server=
    smtp_port=
    auth_username=
    auth_password=

  6. Save and restart xampp/wamp

It should work.