pluf / installer

An installer script
MIT License
0 stars 0 forks source link

Settings for mail #7

Open hadimansouri opened 7 years ago

hadimansouri commented 7 years ago

Settings for mail should be considered to installer

hadimansouri commented 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;
mostafabarmshory commented 7 years ago

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