K
K
Kirill Gorelov2017-06-02 10:59:37
1C-Bitrix
Kirill Gorelov, 2017-06-02 10:59:37

Bitrix variables #mail_to#?

Guys. A question.
It is necessary to rewrite the standard function of sending letters via smtp on Bitrix - done, rewritten.
So. Now, instead of the address, this line #mail_to# comes up, how can I substitute the real address instead?
Here is my function

function custom_mail($to, $subject, $message, $addh = "", $addp = "")
{
        require_once __DIR__.'/phpmailer/PHPMailerAutoload.php';
/*
тут код подключения, просто его стер
*/
      $Mailer->setFrom('[email protected]', 'info');
      $Mailer->addReplyTo('[email protected]', 'Information');
      $Mailer->addAddress($to);

      $Mailer->Subject = $subject;
      $Mailer->Body    = $message;
      $Mailer->IsHTML(true);  
      $status = $Mailer->Send();

        return 1;
}

The $to variable stores this string #mail_to#

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question