Merge branch 'master' of bitbucket.org:jsuto/piler

This commit is contained in:
Janos SUTO 2017-07-08 17:53:20 +02:00
commit d4ffc02270

View File

@ -12,6 +12,8 @@ class ModelMailMail extends Model {
$msg = preg_replace("/Message-ID:([^\n]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
}
$msg = preg_replace("/^\..*$/m", ".$0", $msg);
$r = fsockopen($smtphost, $smtpport);
if(!$r){ return -1; }