From e3d826acd7c05e8f0824af868661110f3fccfca9 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 17 Dec 2019 20:23:31 +0100 Subject: [PATCH] domain parameter --- lib/mailcannon.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/mailcannon.php b/lib/mailcannon.php index 2bbfdf8..8a617d0 100644 --- a/lib/mailcannon.php +++ b/lib/mailcannon.php @@ -5,7 +5,7 @@ require_once(dirname(__FILE__).'/Pear/Mail/mime.php'); require_once(dirname(__FILE__).'/Pear/Net/SMTP.php'); class mailcannon { - public static function send($smtp,$from,$to,$replyto,$subject,$text,$html,$images,$attachments){ + public static function send($smtp,$from,$to,$domain,$subject,$text,$html,$images,$attachments){ if($smtp){ $mail = Mail::factory('smtp', $smtp); } else { @@ -33,9 +33,8 @@ class mailcannon { $hdrs = $mime->headers(array( 'From' => $from, 'To' => $to, 'Subject' => $subject, - // 'Reply-to' => $replyto, // this should reference a message id 'Return-Path' => $from, - 'Message-ID' => self::generateMessageID().'_'.$from, + 'Message-ID' => self::generateMessageID().'@'.$domain, 'Date' => date('r', time()))); $recipients = array( 'To' => $to);