|
@@ -12,6 +12,7 @@
|
|
define('smtp_php', true);
|
|
define('smtp_php', true);
|
|
|
|
|
|
include('../functions/addressbook.php');
|
|
include('../functions/addressbook.php');
|
|
|
|
+ include('../functions/plugin.php');
|
|
|
|
|
|
global $username, $popuser, $domain;
|
|
global $username, $popuser, $domain;
|
|
|
|
|
|
@@ -567,8 +568,11 @@
|
|
function sendMessage($t, $c, $b, $subject, $body, $reply_id) {
|
|
function sendMessage($t, $c, $b, $subject, $body, $reply_id) {
|
|
global $useSendmail, $msg_id, $is_reply, $mailbox, $onetimepad;
|
|
global $useSendmail, $msg_id, $is_reply, $mailbox, $onetimepad;
|
|
global $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress, $imapPort;
|
|
global $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress, $imapPort;
|
|
|
|
+ global $more_headers;
|
|
$more_headers = Array();
|
|
$more_headers = Array();
|
|
|
|
|
|
|
|
+ do_hook("smtp_send");
|
|
|
|
+
|
|
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
|
|
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
|
|
|
|
|
|
if (isset($reply_id) && $reply_id) {
|
|
if (isset($reply_id) && $reply_id) {
|