10/10/2018, 11:21
Nhờ giúp đở về mail trong php.
mình chạy hàm viết mail sử dụng phpmailer, Chạy trong Xampp thì ok, nhưng chạy trong wampserver nó báo lổi:
Deprecated: Function eregi() is deprecated in C:wampwwwmailclass.phpmailer.php on line 591
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in C:wampwwwmailclass.smtp.php on line 122
Bạn nào biết chỉ dùm mình với. Đa tạ
Deprecated: Function eregi() is deprecated in C:wampwwwmailclass.phpmailer.php on line 591
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in C:wampwwwmailclass.smtp.php on line 122
Bạn nào biết chỉ dùm mình với. Đa tạ
Bài liên quan
Bạn bấm chuột trái zô biểu tượng của wamp,
Chọn Apache
Chọn Apache modules
Chọn ssl_module để active ssl trong wamp.
Như vậy là được rồi.
http://php.net/manual/en/function.eregi.php
bạn đọc link này thì rõ hơn: http://php.net/manual/en/migration53.deprecated.php
hàm eregi, dùng preg_match() thay thế với PHP >= 5.3