R
R
Ramil2015-08-12 22:31:00
PHP
Ramil, 2015-08-12 22:31:00

How to send a message to Vkontakte by email?

Hello everyone, I was faced with the task of sending some notifications from the site to my own Vkontakte profile using emails.
I sent a test message to my email via VK and received an email, sending to which I receive a message in VK.
I tried to send to this Email from different mailboxes, messages come.
But when I try to send through the
mail () script,
the messages do not come. Has anyone come across? how is complexity solved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
v- death, 2015-08-12
Abdrahimov @MrAbdrahimov

phpmailer + yandexSMTP
Example config.php

$__smtp = array(
    "host" => "smtp.yandex.ru", //smtp сервер
    "debug" => 2,                   //отображение информации дебаггера (0 - нет вообще)
    "auth" => true,                 //сервер требует авторизации
    "port" => 25,                    //порт (по-умолчанию - 25)
    "username" => "%username%",//имя пользователя на сервере
    "password" => "%password%",//пароль
    "addreply" => "[email protected]",//ваш е-mail
    "replyto" => "[email protected]"      //e-mail ответа
);

Source
progger.ru/flush-url/aHR0cDovL2xpdmUucHJvZ2dlci5yd...

A
Andrey Burov, 2015-08-12
@BuriK666

Look at the mail server logs, there will be an answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question