23 $mailer =
new NativeMailerHandler(
'spammer@example.org',
'dear victim',
"receiver@example.org\r\nFrom: faked@attacker.org");
31 $mailer =
new NativeMailerHandler(
'spammer@example.org',
'dear victim',
'receiver@example.org');
32 $mailer->addHeader(
"Content-Type: text/html\r\nFrom: faked@attacker.org");
40 $mailer =
new NativeMailerHandler(
'spammer@example.org',
'dear victim',
'receiver@example.org');
41 $mailer->addHeader(array(
"Content-Type: text/html\r\nFrom: faked@attacker.org"));
49 $mailer =
new NativeMailerHandler(
'spammer@example.org',
'dear victim',
'receiver@example.org');
50 $mailer->setContentType(
"text/html\r\nFrom: faked@attacker.org");
58 $mailer =
new NativeMailerHandler(
'spammer@example.org',
'dear victim',
'receiver@example.org');
59 $mailer->setEncoding(
"utf-8\r\nFrom: faked@attacker.org");
testConstructorHeaderInjection()
InvalidArgumentException
NativeMailerHandler uses the mail() function to send the emails.
testSetterContentTypeInjection()
InvalidArgumentException
testSetterArrayHeaderInjection()
InvalidArgumentException
testSetterHeaderInjection()
InvalidArgumentException
testSetterEncodingInjection()
InvalidArgumentException