Skip to content

Commit

Permalink
fix(backend): jmap config with smtp server
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow243 committed Jan 17, 2025
1 parent 1972b90 commit ca1d0ae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/core/handler_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,18 @@ public function process() {
return;
}

if($isSender){
if (!$this->module_is_supported('smtp')) {
Hm_Msgs::add("ERRSMTP module is not enabled");
return;
}
$this->smtp_server_id = connect_to_smtp_server($smtpAddress, $profileName, $smtpPort, $email, $password, $smtpTls, 'smtp', $smtpServerId);
if(!isset($this->smtp_server_id)){
Hm_Msgs::add("ERRCould not save server");
return;
}
}

$this->jmap_server_id = connect_to_imap_server(
$jmapAddress,
$profileName,
Expand Down

0 comments on commit ca1d0ae

Please sign in to comment.