elBadr
elBadr

Reputation: 25

XAMPP PHP sending emails from to localhost

I'm trying to send messages from Localhost to Localhost (Thunderbird account), I'm using XAMPP following this tutorial How to use mercury ....

My php.ini conf is

    [mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; 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 

=

Despite that I still receive the next error

 Warning: mail(): SMTP server response: 421 Service not available, closing channel. 

Upvotes: 1

Views: 3267

Answers (2)

Timo002
Timo002

Reputation: 3208

I had exactly the same issue! It was caused by not having a QUEUE folder. So I added a folder named QUEUE tot the MercuryMail directory C:\xampp\MercuryMail and this fixed the problem for me!

Complete path: C:\xampp\MercuryMail\QUEUE

Upvotes: 5

gaurav gupta
gaurav gupta

Reputation: 169

1.Install / Properly configure an SMTP server on localhost port 25 2.Change the configuration to point to some other SMTP server that you can connect to

This link may help you...

http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html

Upvotes: 2

Related Questions