The Elearning Community • Enable email functionality
Page 1 of 1

Enable email functionality

Posted: Tue Jul 14, 2015 6:02 am
by pretheesh.j
Hello,

I want to add "createNewAlert" function to send email inside the module. Could you please let me know the files and coded needed for this ?

Thanks in Advance

Re: Enable email functionality

Posted: Wed Jul 15, 2015 7:33 am
by alberto
Hi pretheesh.j, welcome on board :)

Sorry I don't understand your question, can you describe exactly the desired behaviour?
- Which event should send the email
- When
- Who should receive
- Etc

Re: Enable email functionality

Posted: Wed Jul 15, 2015 7:39 am
by max
Also, "alert" to me looks a lot like "announcement". The Announcement function is already included in the course menu; creating an announcement already sends an e-mail, provided you configure it under "event manager".

Moving to more appropriate thread

Re: Enable email functionality

Posted: Wed Sep 07, 2016 11:41 am
by deevman
I also have the same problem,
I want the LMS to send registration info to outside domains (e.g. [email protected]) if that is the mail a new user entered to register and not internally registered students or users within the system.

Re: Enable email functionality

Posted: Wed Sep 07, 2016 11:41 am
by deevman
I also have the same problem,
I want the LMS to send registration info to outside domains (e.g. [email protected]) if that is the mail a new user entered to register and not internally registered students or users within the system.

Where do I configure SMTP and POP information in Forma LMS?

Re: Enable email functionality

Posted: Wed Sep 07, 2016 2:52 pm
by canelli
to send emails, formalms can use
a) the server native sendmail (default setting ) , you must have installed a sendmail programm on the server
b) an external smtp server (with or without) authentication: set the rilevant information in config.php file. you must download edit and upload the file from your webserver

forma does not need to receive emails , so there is no pop3 configuration

Claudio

Re: Enable email functionality

Posted: Tue May 22, 2018 9:45 am
by deevman
I setup the forma lms successfully.
However I need some assistance with the configuration settings for exchange email server below:

$cfg['use_smtp'] = 'on';
$cfg['smtp_host'] =''; // Options: hostname;hostname:port;...
$cfg['smtp_port'] ='25'; // Options: '' (default port) , port number
$cfg['smtp_secure'] = 'ssl'; // Options: "", "ssl", "tls"
$cfg['smtp_user'] ='';
$cfg['smtp_pwd'] ='';

I have tried it with yahoo and the email alerts work fine, but it does not work with my Exchange Server settings.

I would be quite grateful for any advice on this.

Re: Enable email functionality

Posted: Tue May 22, 2018 10:56 am
by canelli
He deevman

the exchange server have no special configuration in forma.lms

try this configuration

Code: Select all

$cfg['use_smtp'] = 'on';
$cfg['smtp_host'] ='dns name of your exchange server or IP '; // Options: hostname;hostname:port;...
$cfg['smtp_port'] ='25'; //  change with the port number where you published exachenge  // Options: '' (default port) , port number
$cfg['smtp_secure'] = 'tls'; // Options: "", "ssl", "tls"
$cfg['smtp_user'] ='exchange user';
$cfg['smtp_pwd'] ='exchange user password';
according with some guide (found googling: php phpmailer exchange smtp ) eg: http://www.serversmtp.com/en/smtp-server-exchange
the correct secure option is TLS

Code: Select all

$cfg['smtp_secure'] = 'tls';
if not working try without secure option

Code: Select all

$cfg['smtp_secure'] = false;
if you want to debug smtp connection with exchange you can enable phpmail output debug . put in the config.php file (smtp section ):

Code: Select all

$cfg['smtp_debug']  = level    ;  // level =  0 (default) , 1, 2 or 3
claudio