Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
require_once(JPATH_SITE.'/libraries/phpmailer/phpmailer.php');
$mail = new PHPMailer;
$sender = array($call_email, JText::_('modcallback_title'));
$mail->isSMTP();
$mail->SMTPDebug = 0;
$mail->Host = 'ssl://smtp.yandex.ru';
$mail->Port = 465;
$mail->SMTPSecure = 'SSL';
$mail->SMTPAuth = true;
$mail->Username = $call_email;
$mail->Password = "";// Пароль
$mail->setFrom($sender);
$mail->addReplyTo($sender);
$mail->addAddress($sender);
$mail->Subject = 'subjec't;
$mail->Body = 'Body';
return $mail->send();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question