mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Also handle SSL
This commit is contained in:
19
email.php
19
email.php
@@ -141,6 +141,25 @@ if (isset($_POST['firstname']))
|
|||||||
|
|
||||||
$mail = new PHPMailer;
|
$mail = new PHPMailer;
|
||||||
|
|
||||||
|
$sql = "SELECT stg_value
|
||||||
|
FROM " . LIME_PREFIX . "settings_global
|
||||||
|
WHERE stg_name = 'emailsmtpssl'";
|
||||||
|
|
||||||
|
$emailsmtpssl = $db->GetOne($sql);
|
||||||
|
|
||||||
|
if (isset($emailsmtpssl) && trim($emailsmtpssl)!=='' && $emailsmtpssl!==0)
|
||||||
|
{
|
||||||
|
if ($emailsmtpssl===1)
|
||||||
|
{
|
||||||
|
$mail->SMTPSecure = "ssl";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$mail->SMTPSecure = $emailsmtpssl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$sql = "SELECT stg_value
|
$sql = "SELECT stg_value
|
||||||
FROM " . LIME_PREFIX . "settings_global
|
FROM " . LIME_PREFIX . "settings_global
|
||||||
WHERE stg_name = 'emailmethod'";
|
WHERE stg_name = 'emailmethod'";
|
||||||
|
|||||||
Reference in New Issue
Block a user