Unable to send mail with Mercury XAMPP

Please, help! Can't send mail with Mercury, also mail () function in php doesn't work. The settings are here.

I've searched for different guides, tried different settings in Mercury, but nothing worked.

My php.ini file setup is like this:

SMTP = localhost
smtp_port = 25
sendmail_from =postmaster@localhost


My senmail.ini:



My Mercury setup:

enter image description here

When I try to send a mail (File-Send mail message), I get an error: enter image description here

As a result, my php-script that uses the mail () function also fails (although the function returns True, there is no letter in my gmail account).


source to share

1 answer

Have you looked at your Gmail settings? Allowed Insecure App

in the gmail setting, SMTP is required to send mail using a gmail address. Disable two factor auth

. Use server address as smtp.gmail.com

, port as 587




All Articles