This commit is contained in:
parent
e8f4d86c66
commit
7251db8b19
|
|
@ -4397,7 +4397,7 @@ class PHPMailer
|
||||||
$cid_domain = '@phpmailer.0';
|
$cid_domain = '@phpmailer.0';
|
||||||
if (filter_var($this->From, FILTER_VALIDATE_EMAIL)) {
|
if (filter_var($this->From, FILTER_VALIDATE_EMAIL)) {
|
||||||
//prepend with a character to create valid RFC822 string in order to validate
|
//prepend with a character to create valid RFC822 string in order to validate
|
||||||
$cid_domain = substr( $this->From, strrpos( $this->From, '@') + 1);
|
$cid_domain = substr($this->From, strrpos($this->From, '@') + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
preg_match_all('/(?<!-)(src|background)=["\'](.*)["\']/Ui', $message, $images);
|
preg_match_all('/(?<!-)(src|background)=["\'](.*)["\']/Ui', $message, $images);
|
||||||
|
|
|
||||||
|
|
@ -620,7 +620,7 @@ EOT;
|
||||||
{
|
{
|
||||||
$result = $this->Mail->setFrom('test@example.com');
|
$result = $this->Mail->setFrom('test@example.com');
|
||||||
self::assertTrue($result, 'setFrom failed');
|
self::assertTrue($result, 'setFrom failed');
|
||||||
|
|
||||||
$this->Mail->msgHTML('<!DOCTYPE html>
|
$this->Mail->msgHTML('<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue