![]() |
![]() |
![]() |
Hướng dẫn dành cho bản self-hosted Download file php_interface.zip giai nén vào folder /home/bitrix/www/bitrix/php_interface mở file init.php cấu hình các thông số mail smpt của bạn là có thể sử dụng TỰ BẠN LÀM THEO HƯỚNG DẪN : hàm function bxmail($to, $subject, $message, $additional_headers="", $additional_parameters="", MainMailContext $context = null){.....} tại đường dẫn /home/bitrix/www/bitrix/modules/main/tools.php Có kiểm tra xem trong code của bạn có hàm custom_mail không? nếu có thì sẽ dùng hàm custom_mail của bạn: if(function_exists("custom_mail")){ còn function custom_mail(param) bạn có thể tự viết riêng mình hoặc dùng trực tiếp hàm này do bitrix24 viết sẵn rồi chỉnh lại theo ý mình: download thư viện phpmailer và giải nén vào folder /home/bitrix/www/bitrix/php_interface/PHPMailer Tao file /home/bitrix/www/bitrix/php_interface/init.php với nôi dung
cấu hình các thông số smtp của server mail bạn vào là có thể gửi mail được |
Hướng dẫn dành cho bản self-hosted: Download file php_interface.zip giai nén vào folder /home/bitrix/www/bitrix/php_interface mở file init.php cấu hình các thông số mail smpt của bạn là có thể sử dụng TỰ BẠN LÀM THEO HƯỚNG DẪN: download thư viện PHPMailer tại https://github.com/PHPMailer/PHPMailer giải nén và rename thành PHPMailer tao file init.php với nôi dung: function custom_mail($to, $subject, $message, $additional_headers, $additional_parameters){ |