Created
January 21, 2014 10:47
-
-
Save anyt/8537897 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 'vendor/autoload.php'; | |
// Create the mail transport configuration | |
$transport = Swift_MailTransport::newInstance(); | |
// Create the message | |
$message = Swift_Message::newInstance(); | |
$message->setTo(array( | |
"[email protected]" => "Andrey Yatsenco", | |
"[email protected]" => "Andrey Yatsenco" | |
)); | |
$message->setSubject("This email is sent using Swift Mailer"); | |
$message->setBody("You're our best client ever."); | |
$message->setFrom("[email protected]", "Site Administrator"); | |
// Send the email | |
$mailer = Swift_Mailer::newInstance($transport); | |
$mailer->send($message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment