T
T
TANK_IST2015-01-26 22:06:38
PHP
TANK_IST, 2015-01-26 22:06:38

How to send an email if mail() is disabled on the server?

Used by Joomla.
I tried via smtp but it doesn't work for me. How to configure it correctly to send a letter to Yandex mail?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
TANK_IST, 2015-01-27
@TANK_IST

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();

N
netdoer, 2015-01-26
@netdoer

For example, via SMTP - PHPMailer

A
Arseniy Togulev, 2015-01-26
@tetra

Try https://mandrillapp.com

S
Sergey, 2015-01-26
@gangstarcj

If Yandex, then you need to enable SSL there in the mail settings, through port 995, enter the login and password to the box

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question