mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-13 08:14:31 +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;
|
||||
|
||||
// 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;
|
||||
|
||||
if (!IS_CLI) {
|
||||
|
@ -856,9 +856,6 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
|
||||
else
|
||||
$tmp_body = $body . '<br/><br/>' . $signature_html;
|
||||
|
||||
define('MAIL_MAIL', 0);
|
||||
define('MAIL_SMTP', 1);
|
||||
|
||||
$mailOption = setting('core.mail_option');
|
||||
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->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');
|
||||
|
||||
$tmp = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user