Created
June 20, 2014 08:15
-
-
Save Invis1ble/5bb3698710ac5b3d6107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once './vendor/autoload.php'; | |
$username = '%username%'; | |
$password = '%password%'; | |
$to = '%to%'; | |
$body = | |
<<<BODY | |
123456789012345678901234567890123456789012345678901234567890123456789012.123 | |
BODY; | |
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'ssl') | |
->setUsername($username) | |
->setPassword($password); | |
$message = Swift_Message::newInstance() | |
->setSubject('Double dot bug test') | |
->setFrom('[email protected]') | |
->setTo($to) | |
->setBody($body); | |
$mailer = Swift_Mailer::newInstance($transport); | |
$mailer->send($message, $failedRecipients); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gist has been created for swiftmailer/swiftmailer#401