miniBB Support Forums | 18 years on The Web
miniBB ® 


 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /   

Use PHPMailerAutoload.php instead of class.phpmailer.php in bb_functions.php

Author me@rochus-kelle
#1 | Posted: 17 Sep 2015 12:42 
I followed all recommendations I found in this forums but still got the error that the SMTP class cannot be found. Finally I saw in the PHPMailer Readme on GitHub that they require PHPMailerAutoload.php instead of class.phpmailer.php. Grepping through the miniBB files I found line 301 of bb_functions.php and changed the file name to PHPMailerAutoload.php. Now it works.

Author Paul
Lead Developer
#2 | Posted: 17 Sep 2015 17:58 
I didn't check/use PHPMailer app for years, and possibly they have changed a lot since this time.

I'll put this into the list of fixes for the upcoming miniBB.

Thanks for mentioning this.

Author Paul
Lead Developer
#3 | Posted: 17 Sep 2015 21:26 
Update: I've checked the current PHPMailer 5.2.13, and it seems there is just needed an inclusion of both files, i.e. class.phpmailer.php and class.smtp.php. But you're right, it's also possible just to include PHPMailerAutoload.php and that would automatically do the trick. I'm not sure about the other cases.

So, in the upcoming release, I will just extend PHPMailer options a bit, so there's possible to specify any necessary files to include/require. You will see it in the manual.

Update will also include work out for secured protocol, like for example, sending mails through Gmail - this requires SMTPSecure and Port values to be specified.

Bugs miniBB Support Forums / Bugs /
 Use PHPMailerAutoload.php instead of class.phpmailer.php in bb_functions.php
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.


miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.