Answer the question
In order to leave comments, you need to log in
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;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question