The classic email sending library for PHP
152 matches across 4 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/PHPMailer/AddStringEmbeddedImageTest.php | 32 | public function testHtmlStringEmbedNoName() |
| LOW | test/PHPMailer/AddStringEmbeddedImageTest.php | 130 | public function testFailToAttachException( |
| LOW | test/PHPMailer/FileIsAccessibleTest.php | 82 | public function testFileIsAccessibleFailsOnUnreadableFile() |
| LOW | test/PHPMailer/AddStringAttachmentTest.php | 33 | public function testAddPlainStringAttachment() |
| LOW | test/PHPMailer/AddStringAttachmentTest.php | 118 | public function testFailToAttachException( |
| LOW | test/PHPMailer/CustomHeaderTest.php | 37 | public function testAddAndGetCustomHeader($headers, $expected = null) |
| LOW | test/PHPMailer/CustomHeaderTest.php | 67 | public static function dataAddAndGetCustomHeader() |
| LOW | test/PHPMailer/CustomHeaderTest.php | 163 | public function testAddCustomHeaderInvalid($name, $value = null) |
| LOW | test/PHPMailer/CustomHeaderTest.php | 173 | public static function dataAddCustomHeaderInvalid() |
| LOW | test/PHPMailer/CustomHeaderTest.php | 217 | public function testClearCustomHeaderValue() |
| LOW | test/PHPMailer/CustomHeaderTest.php | 259 | public function testInvalidHeaderException() |
| LOW | test/PHPMailer/DSNConfiguratorTest.php | 94 | public function testConfigureSmtpWithoutAuthentication() |
| LOW | test/PHPMailer/DSNConfiguratorTest.php | 108 | public function testConfigureSmtpWithAuthentication() |
| LOW | test/PHPMailer/DSNConfiguratorTest.php | 125 | public function testConfigureSmtpWithoutPort() |
| LOW | test/PHPMailer/DSNConfiguratorTest.php | 153 | public function testConfigureSmtpsWithoutPort() |
| LOW | test/PHPMailer/DSNConfiguratorTest.php | 173 | public function testConfigureWithUnknownOption() |
| LOW | test/PHPMailer/NormalizeBreaksTest.php | 94 | public function testNormalizeBreaksWithCustomLineEnding() |
| LOW | test/PHPMailer/MailTransportTest.php | 129 | public function testMailSendWithSendmailParams() |
| LOW | test/PHPMailer/MailTransportTest.php | 159 | public function testSendmailSendWithSendmailParams() |
| LOW | test/PHPMailer/DKIMWithoutExceptionsTest.php | 37 | public function testDKIMSignOpenSSLNotAvailable() |
| LOW | test/PHPMailer/PunyencodeAddressTest.php | 38 | public function testPunyencodeAddressConversion($input, $charset, $expected) |
| LOW | test/PHPMailer/PunyencodeAddressTest.php | 54 | public static function dataPunyencodeAddressConversion() |
| LOW | test/PHPMailer/PunyencodeAddressTest.php | 92 | public function testPunyencodeAddressNoConversion($input, $charset, $expected) |
| LOW | test/PHPMailer/PunyencodeAddressTest.php | 111 | public static function dataPunyencodeAddressNoConversion() |
| LOW | test/PHPMailer/SetFromTest.php | 106 | public function testSetFromDoesNotOverruleSenderWithAutoFalse() |
| LOW | test/PHPMailer/SetFromTest.php | 117 | public function testSetFromDoesNotOverruleExistingSender() |
| LOW | test/PHPMailer/SetFromTest.php | 159 | public function testInvalidAddressException($address, $name = '') |
| LOW | test/PHPMailer/EmptyMailerTest.php | 30 | public function testSendWithEmptyMailerDoesNotCrash($mailer) |
| LOW | test/PHPMailer/ValidateAddressTest.php | 73 | public function testPatternsInvalidAddress($pattern) |
| LOW | test/PHPMailer/PHPMailerTest.php | 45 | public function testMultiplePlainFileAttachment() |
| LOW | test/PHPMailer/PHPMailerTest.php | 69 | public function testRejectNonLocalFileAttachment() |
| LOW | test/PHPMailer/PHPMailerTest.php | 622 | public function testEmbeddedImageCustomCidDomain() |
| LOW | test/PHPMailer/PHPMailerTest.php | 862 | public function testAddAttachmentEncodingException() |
| LOW | test/PHPMailer/PHPMailerTest.php | 873 | public function testAddFolderAsAttachment() |
| LOW | test/PHPMailer/PHPMailerTest.php | 887 | public function testDeletedAttachmentException() |
| LOW | test/PHPMailer/PHPMailerTest.php | 902 | public function testDeletedAttachmentError() |
| LOW | test/PHPMailer/PHPMailerTest.php | 1236 | public function testStrangeUnicodeEmailAddresses() |
| LOW | test/PHPMailer/PHPMailerTest.php | 1249 | public function testAutomaticEaiValidation() |
| LOW | test/PHPMailer/DKIMTest.php | 54 | public function testDKIMBodyCanonicalization() |
| LOW | test/PHPMailer/DKIMTest.php | 89 | public function testDKIMHeaderCanonicalization() |
| LOW | test/PHPMailer/DKIMTest.php | 126 | public function testDKIMOptionalHeaderFieldsCopy() |
| LOW | test/PHPMailer/DKIMTest.php | 247 | public function testDKIMSignOpenSSLNotAvailableException() |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 40 | public function testAddReplyToValidAddressNonIdn($address, $name = null, $expected = null) |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 86 | public static function dataAddReplyToValidAddressNonIdn() |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 125 | public function testAddReplyToInvalidAddressNonIdn($address) |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 147 | public function testAddReplyToInvalidAddressNonIdnException($address) |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 161 | public static function dataAddReplyToInvalidAddressNonIdn() |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 181 | public function testReplyToInMessageHeader($addresses, $expected) |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 207 | public static function dataReplyToInMessageHeader() |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 265 | public function testEnqueueAndAddIdnAddress() |
| LOW | test/PHPMailer/ReplyToGetSetClearTest.php | 305 | public function testNoDuplicateReplyToAddresses() |
| LOW | test/PHPMailer/LocalizationTest.php | 134 | public function testSetLanguageSuccessFallBackLogic($phrase, $langCode = null, $langPath = null) |
| LOW | test/PHPMailer/LocalizationTest.php | 144 | public static function dataSetLanguageSuccessFallBackLogic() |
| LOW | test/PHPMailer/LocalizationTest.php | 282 | public function testSetLanguageDoesNotExecuteCodeInLangFile() |
| LOW | test/PHPMailer/LocalizationTest.php | 327 | public function testSetLanguageDoesNotExecuteCodeWithBackticksInLangFile() |
| LOW | test/PHPMailer/LocalizationTest.php | 358 | public function testSetLanguageOnlyProcessesKnownKeys() |
| LOW | test/PHPMailer/AddEmbeddedImageTest.php | 99 | public function testAddingImageWithoutExplicitName() |
| LOW | test/PHPMailer/AddEmbeddedImageTest.php | 142 | public function testFailToAttachException( |
| LOW | test/PHPMailer/ParseAddressesTest.php | 53 | public function testAddressSplittingNative($addrstr, $expected, $charset = PHPMailer::CHARSET_ISO88591) |
| LOW | test/PHPMailer/ParseAddressesTest.php | 80 | public function testParseAddressesWithFalsyUseimapValues($useimap) |
| 21 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | README.md | 111 | $mail->Username = 'user@example.com'; //SMTP username |
| LOW | test/PHPMailer/WrapTextTest.php | 55 | 'message' => 'Lorem ipsum dolor sit amet.', |
| LOW | test/PHPMailer/WrapTextTest.php | 55 | 'message' => 'Lorem ipsum dolor sit amet.', |
| LOW | test/PHPMailer/WrapTextTest.php | 56 | 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(), |
| LOW | test/PHPMailer/WrapTextTest.php | 56 | 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(), |
| LOW | test/PHPMailer/WrapTextTest.php | 60 | 'message' => 'Lorem ipsum dolor sit amet.', |
| LOW | test/PHPMailer/WrapTextTest.php | 60 | 'message' => 'Lorem ipsum dolor sit amet.', |
| LOW | test/PHPMailer/WrapTextTest.php | 61 | 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(), |
| LOW | test/PHPMailer/WrapTextTest.php | 61 | 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(), |
| LOW | test/PHPMailer/WrapTextTest.php | 65 | 'message' => 'Lorem ipsum dolor' . PHPMailer::CRLF, |
| LOW | test/PHPMailer/WrapTextTest.php | 66 | 'expected' => 'Lorem ipsum dolor' . PHPMailer::getLE(), |
| LOW | test/PHPMailer/WrapTextTest.php | 69 | 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' |
| LOW | test/PHPMailer/WrapTextTest.php | 69 | 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' |
| LOW | test/PHPMailer/WrapTextTest.php | 72 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 72 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 80 | 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' |
| LOW | test/PHPMailer/WrapTextTest.php | 80 | 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' |
| LOW | test/PHPMailer/WrapTextTest.php | 83 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 83 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 91 | 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. =' . PHPMailer::CRLF |
| LOW | test/PHPMailer/WrapTextTest.php | 91 | 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. =' . PHPMailer::CRLF |
| LOW | test/PHPMailer/WrapTextTest.php | 95 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 95 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 104 | 'message' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrseddiamnonumy', |
| LOW | test/PHPMailer/WrapTextTest.php | 110 | 'message' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrseddiamnonumy', |
| LOW | test/PHPMailer/WrapTextTest.php | 111 | 'expected' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrs=' . PHPMailer::getLE() |
| LOW | test/PHPMailer/WrapTextTest.php | 116 | 'message' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrseddiam=' . PHPMailer::CRLF |
| LOW | test/PHPMailer/EmptyMailerTest.php | 33 | $this->Mail->addAddress('whoto@example.com', 'John Doe'); |
| LOW | test/PHPMailer/ValidateAddressTest.php | 191 | 'test@test.com', |
| LOW | test/PHPMailer/PHPMailerTest.php | 1316 | $this->Mail->setSMTPXclientAttribute('LOGIN', 'user@example.com'); |
| LOW | test/PHPMailer/PHPMailerTest.php | 1326 | $this->assertEquals(['ADDR' => '127.0.0.1', 'LOGIN' => 'user@example.com'], $attributes); |
| LOW | test/PHPMailer/Html2TextTest.php | 54 | 'input' => ' Lorem ipsum dolor sit amet, consectetur adipiscing elit. ', |
| LOW | test/PHPMailer/Html2TextTest.php | 54 | 'input' => ' Lorem ipsum dolor sit amet, consectetur adipiscing elit. ', |
| LOW | test/PHPMailer/Html2TextTest.php | 55 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 55 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 181 | 'input' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 181 | 'input' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 183 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 183 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 186 | 'input' => 'Lorem <div>ipsum</div> dolor sit amet<br/>,' |
| LOW | test/PHPMailer/Html2TextTest.php | 191 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing() elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 191 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing() elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 194 | 'input' => 'Lorem <div>ipsum</div> dolor sit amet<br/>,' |
| LOW | test/PHPMailer/Html2TextTest.php | 197 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing() elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 197 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing() elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 200 | 'input' => 'Lorem <div>ipsum</div> dolor sit amet<br/>,' |
| LOW | test/PHPMailer/Html2TextTest.php | 203 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing() elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 203 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing() elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 206 | 'input' => 'Lorem <div>ipsum</div> dolor sit amet<br/>,' |
| LOW | test/PHPMailer/Html2TextTest.php | 209 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 209 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 212 | 'input' => 'Lorem <div>ipsum</div> dolor sit amet<br/>,' |
| LOW | test/PHPMailer/Html2TextTest.php | 215 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 215 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 218 | 'input' => 'Lorem <div>ipsum</div> dolor sit amet<br/>,' |
| LOW | test/PHPMailer/Html2TextTest.php | 221 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur elit.', |
| LOW | test/PHPMailer/Html2TextTest.php | 221 | 'expected' => 'Lorem ipsum dolor sit amet, consectetur elit.', |
| LOW | test/PHPMailer/AuthCRAMMD5Test.php | 45 | $this->Mail->addAddress('user@example.com'); |
| LOW | test/PHPMailer/ValidateAddressCustomValidatorTest.php | 36 | PHPMailer::validateAddress('user@example.com', $callback), |
| LOW | test/PHPMailer/ValidateAddressCustomValidatorTest.php | 52 | return 'user@example.com' === $address; |
| 2 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .phan/config.php | 21 | ], |
| LOW | test/fakepopserver.sh | 1 | #!/usr/bin/env bash |
| LOW | test/PHPMailer/PHPMailerTest.php | 1341 | * @group slow |
| LOW | language/phpmailer.lang-fo.php | 21 | $PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).'; |
| LOW | language/phpmailer.lang-fi.php | 21 | $PHPMAILER_LANG['provide_address'] = 'Aseta vähintään yksi vastaanottajan sähköpostiosoite.'; |
| LOW | .github/workflows/tests.yml | 141 | - name: Check out code |
| LOW | src/PHPMailer.php | 1901 | //A space after `-f` is optional, but there is a long history of its presence |
| LOW | src/PHPMailer.php | 5261 | //Unfold header lines |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/fakesendmail.sh | 5 | #Create a temp folder to put messages in |