mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-14 16:54:29 +02:00
Move definitions
This commit is contained in:
parent
66479e64ed
commit
1ed24afc7d
@ -108,6 +108,13 @@ const TFS_FIRST = TFS_02;
|
|||||||
const TFS_LAST = TFS_03;
|
const TFS_LAST = TFS_03;
|
||||||
|
|
||||||
// other definitions
|
// other definitions
|
||||||
|
const MAIL_MAIL = 0;
|
||||||
|
const MAIL_SMTP = 1;
|
||||||
|
|
||||||
|
const SMTP_SECURITY_NONE = 0;
|
||||||
|
const SMTP_SECURITY_SSL = 1;
|
||||||
|
const SMTP_SECURITY_TLS = 2;
|
||||||
|
|
||||||
const ACCOUNT_NUMBER_LENGTH = 8;
|
const ACCOUNT_NUMBER_LENGTH = 8;
|
||||||
|
|
||||||
if (!IS_CLI) {
|
if (!IS_CLI) {
|
||||||
|
@ -856,9 +856,6 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
|
|||||||
else
|
else
|
||||||
$tmp_body = $body . '<br/><br/>' . $signature_html;
|
$tmp_body = $body . '<br/><br/>' . $signature_html;
|
||||||
|
|
||||||
define('MAIL_MAIL', 0);
|
|
||||||
define('MAIL_SMTP', 1);
|
|
||||||
|
|
||||||
$mailOption = setting('core.mail_option');
|
$mailOption = setting('core.mail_option');
|
||||||
if($mailOption == MAIL_SMTP)
|
if($mailOption == MAIL_SMTP)
|
||||||
{
|
{
|
||||||
@ -869,10 +866,6 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
|
|||||||
$mailer->Username = setting('core.smtp_user');
|
$mailer->Username = setting('core.smtp_user');
|
||||||
$mailer->Password = setting('core.smtp_pass');
|
$mailer->Password = setting('core.smtp_pass');
|
||||||
|
|
||||||
define('SMTP_SECURITY_NONE', 0);
|
|
||||||
define('SMTP_SECURITY_SSL', 1);
|
|
||||||
define('SMTP_SECURITY_TLS', 2);
|
|
||||||
|
|
||||||
$security = setting('core.smtp_security');
|
$security = setting('core.smtp_security');
|
||||||
|
|
||||||
$tmp = '';
|
$tmp = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user