Answer the question
In order to leave comments, you need to log in
Why can't I connect to SMTP in XAMPP?
I'm trying to send an email from localhost using mail(). Boxes in quotes for *** us.
Changes in php.ini:
[mail function]
sendmail_from = ***@gmail.com
sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"
SMTP=smtp.gmail.com
smtp_port=587
[sendmail]
smtp_server=stmp.gmail.com
smtp_port=587
debug_logfile=debug.log
auth_username=***@gmail.com
auth_password=***
force_sender=
smtp_ssl=auto
error_logfile=error.log
mail ('***@***.ru', 'Проверка', 'Текст тестового письма', 'From: ***@gmail.com');
06/19/17 04:03:05 PM ** --- MESSAGE BEGIN ---
06/19/17 04:03:05 PM ** To: ***@***.ru 06/19/17
04:03:05 PM ** Subject : Checking
06/19/17 04:03:05 PM ** From: ***@gmail.com 06/19/17
04:03:05 PM **
06/19/17 04:03:05 PM ** Test email text 06/19/17 04:03
PM :05 ** --- MESSAGE END ---
6/19/17 4:03:07 PM ** Connecting to stmp.gmail.com:587 6/19/17
4:03:09 PM ** Disconnected.
6/19/17 4:03:09 PM ** Disconnected.
6/19/17 4:03:09 PM ** Disconnected.
06/19/17 4:03:09 PM ** Socket Error # 11001Host not found.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question