vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325177

smtp peer setting
by aminp30
01 Jun 2017 13:17

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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

How can I do it in vbulletin?
should I make change in class_mail.php file?

Dave 01 Jun 2017 13:35

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

aminp30 01 Jun 2017 14:09

Quote:

Originally Posted by Dave (Post 2587160)
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


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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


the above code must replace to this code in line 756:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 03:08.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.