Enable email functionality

Anything about what happens on the user and teacher side
Post Reply
pretheesh.j
Newbie
Posts: 11
Joined: Tue Jul 14, 2015 5:57 am

Enable email functionality

Post by pretheesh.j » Tue Jul 14, 2015 6:02 am

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

User avatar
alberto
FormaLms Guru
Posts: 857
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: Enable email functionality

Post by alberto » Wed Jul 15, 2015 7:33 am

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
--------------------------------------------------
Become a CONTRIBUTOR

Support the project for FREE!
www.Elearnit.net

User avatar
max
FormaLms Guru
Posts: 1749
Joined: Thu Mar 01, 2012 10:41 am

Re: Enable email functionality

Post by max » Wed Jul 15, 2015 7:39 am

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
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

deevman
Newbie
Posts: 10
Joined: Tue Apr 12, 2016 5:18 pm

Re: Enable email functionality

Post by deevman » Wed Sep 07, 2016 11:41 am

I also have the same problem,
I want the LMS to send registration info to outside domains (e.g. mike@yahoo.com) if that is the mail a new user entered to register and not internally registered students or users within the system.

deevman
Newbie
Posts: 10
Joined: Tue Apr 12, 2016 5:18 pm

Re: Enable email functionality

Post by deevman » Wed Sep 07, 2016 11:41 am

I also have the same problem,
I want the LMS to send registration info to outside domains (e.g. mike@yahoo.com) 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?

User avatar
canelli
FormaLms Guru
Posts: 451
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Enable email functionality

Post by canelli » Wed Sep 07, 2016 2:52 pm

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
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
---------------

deevman
Newbie
Posts: 10
Joined: Tue Apr 12, 2016 5:18 pm

Re: Enable email functionality

Post by deevman » Tue May 22, 2018 9:45 am

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.

User avatar
canelli
FormaLms Guru
Posts: 451
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Enable email functionality

Post by canelli » Tue May 22, 2018 10:56 am

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
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
---------------

Post Reply