mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
new option REWRITE_MESSAGE_ID enables you to rewrite the message-id of the restored message
This commit is contained in:
@ -8,6 +8,10 @@ class ModelMailMail extends Model {
|
||||
|
||||
if($to == "" || strlen($msg) < 30){ return $ok; }
|
||||
|
||||
if(REWRITE_MESSAGE_ID == 1) {
|
||||
$msg = preg_replace("/Message-ID:([\ \w\_\-\@\<\>\.\r]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
|
||||
}
|
||||
|
||||
$r = fsockopen($smtphost, $smtpport);
|
||||
if(!$r){ return -1; }
|
||||
|
||||
|
Reference in New Issue
Block a user