Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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('webmaster@example.com')
->setTo($to)
->setBody($body);
$mailer = Swift_Mailer::newInstance($transport);
$mailer->send($message, $failedRecipients);
@Invis1ble
Copy link
Author

Invis1ble commented Jun 20, 2014

gist has been created for swiftmailer/swiftmailer#401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment