The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
smtp peer setting
hi guys
I use php 5.6 so by default it sets verification of SSL certificate as true I need to make it false I found a code to set it in phpmailer. Code:
PHPMailer::smtpConnect( [ "ssl" => [ "verify_peer" => true, "verify_peer_name" => false, "allow_self_signed" => true ] ] ); should I make change in class_mail.php file? |
#2
|
|||
|
|||
If you want to use SMTP in vBulletin instead of using the local sendmail/mail function of your server, then I'm afraid it's not possible.
vBulletin makes use of fsockopen when SMTP is used, which has no option to disable certification verification. Of course you can make modifications to /includes/class_mail.php and add something like this http://i.justrealized.com/2009/allow...and-fsockopen/ https://stackoverflow.com/questions/...when-using-tls |
#3
|
|||
|
|||
Quote:
thanks for reply I used some code that learned from here: https://www.vbulletin.com/forum/foru...ith-php-5-6-11 this code worked for me: PHP Code:
the above code must replace to this code in line 756: PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|