Update v_mailto.php

This commit is contained in:
FusionPBX 2018-02-22 20:14:58 -07:00 committed by GitHub
parent a7cc0c97ca
commit e5ea07f350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 8 deletions

View File

@ -145,17 +145,14 @@
$smtp['auth'] = $_SESSION['email']['smtp_auth']['text'];
$smtp['username'] = $_SESSION['email']['smtp_username']['text'];
$smtp['password'] = $_SESSION['email']['smtp_password']['text'];
if (isset($_SESSION['voicemail']['smtp_from'])) {
$smtp['from'] = $_SESSION['voicemail']['smtp_from']['text'];
} else {
$smtp['from'] = $_SESSION['email']['smtp_from']['text'];
}
if (isset($_SESSION['voicemail']['smtp_from_name'])) {
$smtp['from_name'] = $_SESSION['voicemail']['smtp_from_name']['text'];
} else {
$smtp['from_name'] = $_SESSION['email']['smtp_from_name']['text'];
if (isset($_SESSION['voicemail']['smtp_from']) && strlen($_SESSION['voicemail']['smtp_from']['text']) > 0) {
$smtp['from'] = $_SESSION['voicemail']['smtp_from']['text'];
}
if (isset($_SESSION['voicemail']['smtp_from_name']) && strlen($_SESSION['voicemail']['smtp_from_name']['text']) > 0) {
$smtp['from_name'] = $_SESSION['voicemail']['smtp_from_name']['text'];
}
// overwrite with domain-specific smtp server settings, if any