A
A
Aricus2019-06-17 16:27:53
Mail server
Aricus, 2019-06-17 16:27:53

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.ini:
[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

code on the page:
mail ('***@***.ru', 'Проверка', 'Текст тестового письма', 'From: ***@gmail.com');

debug.log:
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

1 answer(s)
D
Dimonchik, 2019-06-17
@Aricus

s mt p.gmail.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question