Page 1 of 1

Email Config

Posted: Wed Jun 28, 2017 1:19 pm
by phatsaqs
Hi,

Im using Windows and IIS for a web server and have configured the server to send emails.
I can successfully send emails using an email test page with the following:

Code: Select all

<?php
if(mail('[email protected]','php test subject','php test message')){
    echo('ok');
}
else{
    echo('not ok');
}
?>
However, emails do not send within forma (I have configured emails to be sent for subscribe/unsubscribe to courses under admin section).
What are the proper config settings to have emails sent within the application considering my setup?
Should I use $cfg['use_smtp'] = 'off'? Is smtp_host needed?

Thanks

Edit: Sending email from newsletter works fine it seems with use_smtp = off. However, no emails are being sent for the settings set in Event Manager.

Re: Email Config

Posted: Wed Jun 28, 2017 2:41 pm
by canelli
Hi
if you are able to send mail with php standard function mail() the correct configuration for forma.lms is

Code: Select all

$cfg['use_smtp'] = 'off'
no other configurations are required

If forma.lms can send email for newsletter or helpdesk , the smtp setting is correct .
Subscribe course not sendinf email would not be an smtp configuration problem

Re: Email Config

Posted: Wed Jun 28, 2017 2:55 pm
by phatsaqs
Got it thanks :) Sending you a PM.