Skip to content

Instantly share code, notes, and snippets.

@Invis1ble
Created June 20, 2014 08:15
Show Gist options
  • Save Invis1ble/5bb3698710ac5b3d6107 to your computer and use it in GitHub Desktop.
Save Invis1ble/5bb3698710ac5b3d6107 to your computer and use it in GitHub Desktop.
<?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);
@Invis1ble
Copy link
Author

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