Answer the question
In order to leave comments, you need to log in
How to connect phpmailer(Yii2) and Yandex mail for domain?
prescribing
'mailer' => [
'class' => 'zyx\phpmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'config' => [
'mailer' => 'smtp',
'host' => 'ssl://smtp.yandex.com',
'port' => '587',
'smtpsecure' => 'TLS',
'smtpauth' => true,
'username' => '[email protected]',
'password' => 'pass',
],
],
'mailer' => [
'class' => 'zyx\phpmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'config' => [
'mailer' => 'smtp',
'host' => 'ssl://smtp.yandex.com',
'port' => '465',
'smtpsecure' => 'ssl',
'smtpauth' => true,
'username' => '[email protected]',
'password' => 'pass',
],
],
Answer the question
In order to leave comments, you need to log in
yes, the mistake is that the sender and the user had to match))
here is a working version, if anyone needs it
'mailer' => [
'class' => 'zyx\phpmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'config' => [
'mailer' => 'smtp',
'host' => 'smtp.yandex.com',
'port' => '465',
'smtpsecure' => 'ssl',
'smtpauth' => true,
'username' => '[email protected]домен.ru',
'password' => 'пароль',
],
],
Purely at random remove ssl:// or why smtp is not in the ru zone?
$(".rem").on('click', function(){
$(this).parent().remove();
})
$(".line").click(function(){
$(this).toggleClass("show");
})
$(parent).on('click', '.child', fn)
$(elem).on('click', '.rem', fn)
and $(elem).on('click', '.line', fn)
, where fn are your callbacks with remove()
andtoggleClass()
well, the most important reason why it won’t work is that your .rem and .line are not in the DOM tree in such a notation, you can only suggest hanging it on document (global), then even with dynamic addition of elements, everything will work for you. well, or the second option to rewrite like this
var text = $('<p class="line"></p>').on('click', function(){
$(this).toggleClass("show");
}).text(val);
$(elem).append('<span class="rem">X</span>').on('click', function(){
$(this).parent().remove();
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question