Page 1 of 1

Bug - Sending a notification via SMTP

Posted: Thu Feb 27, 2014 6:43 pm
by ovivojh
Greetings,

Updated to 1.1 and receiving this error when I flag a notification to go out to a user.

Error is below:

! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: Class 'SMTP' not found in E:\...\addons\phpmailer\class.phpmailer.php on line 1158
Call Stack
# Time Memory Function Location
1 0.0010 720120 {main}( ) ..\index.php:0
2 0.3581 10054392 Controller->request( ) ..\index.php:79
3 0.3581 10054392 SubscriptionAlmsController->ins( ) ..\lib.controller.php:50
4 0.4026 11910024 createNewAlert( ) ..\SubscriptionAlmsController.php:549
5 0.4804 11928256 DoceboEventManager::dispatch( ) ..\lib.eventmanager.php:330
6 0.4846 12011184 DoceboUserNotifier->actionEvent( ) ..\lib.eventmanager.php:184
7 0.5316 12835960 DoceboUserNotifier->_sendMail( ) ..\lib.usernotifier.php:97
8 0.5476 14312336 DoceboMailer->SendMail( ) ..\lib.usernotifier.php:140
9 0.5977 14317192 PHPMailer->send( ) ..\lib.mailer.php:310
10 0.5989 14320160 PHPMailer->postSend( ) ..\class.phpmailer.php:930
11 0.5989 14320160 PHPMailer->smtpSend( ) ..\class.phpmailer.php:1023
12 0.5989 14320368 PHPMailer->smtpConnect( ) ..\class.phpmailer.php:1179
13 0.5989 14320576 PHPMailer->getSMTPInstance( ) ..\class.phpmailer.php:1248

Re: Bug - Sending a notification via SMTP

Posted: Fri Feb 28, 2014 10:14 am
by canelli
Hi
with FormaLMS 1.1 we have upgrade the phpmail class .

we will check your error
.
can you post your configuration environment (OS, web server, PHP verision , .. ) and smtp configuration ( remove first your user and password from the connection )

Re: Bug - Sending a notification via SMTP

Posted: Fri Feb 28, 2014 5:20 pm
by ovivojh
Sure.

System Windows NT .... 5.2 build 3790 (Windows Server 2003 Standard x64 Edition Service Pack 2) AMD64
SERVER_SOFTWARE Apache/2.2.22 (Win64) PHP/5.3.13
SMTP localhost
smtp_port 25

Let me know if there's additional data that you need. Also if you are adding a new user into Docebo it hangs on "Loading" when you create the user, but I think it has to do with this issue because I have it set to send a notification out to the new user when they are added to the system. If I force refresh, the user was added. Just no notification.

-John

Re: Bug - Sending a notification via SMTP

Posted: Fri Feb 28, 2014 8:28 pm
by canelli
Hi ovivojh
The error is related to the phpmailer version 5.2.7 , the autoload functionality and the SMTP configuration .

to correct the bug edit the file: <formalms-root>/lib/lib.mailer.php

change line 14

Code: Select all

require_once(_base_.'/addons/phpmailer/class.phpmailer.php');
with this code

Code: Select all

//require_once(_base_.'/addons/phpmailer/class.phpmailer.php');
require_once(_base_.'/addons/phpmailer/PHPMailerAutoload.php');
This will permitt you send mail with SMTP

Re: Bug - Sending a notification via SMTP

Posted: Mon Mar 03, 2014 8:29 pm
by ovivojh
Fixed it, thanks anellic :)

-John