Open hadimansouri opened 7 years ago
Below is a sample for mail setting in older configurations:
/*
* ----------------------------------------------------------------------------
* EMail section
* ----------------------------------------------------------------------------
*/
/*
* Possible methods to send mail:
* - mail
* - sendmail
* - smtp
*/
$cfg['mail_backend'] = 'mail';
/*
* Settings for mails in sendmail method
*/
$cfg['mail_sendmail_path'] = '/usr/bin/sendmail';
$cfg['sendmail_args'] = '-i';
/*
* Settings for mails in SMTP method
*/
$cfg['mail_host'] = 'localhost';
$cfg['mail_port'] = 25;
$cfg['mail_auth'] = FALSE;
$cfg['mail_username'] = 'info@dpq.co.ir';
$cfg['mail_password'] = 'password';
$cfg['mail_localhost'] = 'localhost';
$cfg['mail_timeout'] = null;
$cfg['mail_verp'] = FALSE;
$cfg['mail_debug'] = FALSE;
$cfg['mail_persist'] = TRUE;
Client must send two data type:
Configs must be related to the backend type. In the config template following code must be added:
{if $mailBackend === 'mail'}
'mail_backend' => 'mail',
{/if}
....
Settings for mail should be considered to installer