Bug - Sending a notification via SMTP

Install and configure FormaLMS and DoceboCE
Post Reply
ovivojh
Newbie
Posts: 12
Joined: Mon Feb 10, 2014 7:45 pm

Bug - Sending a notification via SMTP

Post 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
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Bug - Sending a notification via SMTP

Post 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 )
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------
ovivojh
Newbie
Posts: 12
Joined: Mon Feb 10, 2014 7:45 pm

Re: Bug - Sending a notification via SMTP

Post 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
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Bug - Sending a notification via SMTP

Post 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
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------
ovivojh
Newbie
Posts: 12
Joined: Mon Feb 10, 2014 7:45 pm

Re: Bug - Sending a notification via SMTP

Post by ovivojh »

Fixed it, thanks anellic :)

-John
Post Reply