Created
January 21, 2014 10:47
-
-
Save anyt/8537897 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 'vendor/autoload.php'; | |
// Create the mail transport configuration | |
$transport = Swift_MailTransport::newInstance(); | |
// Create the message | |
$message = Swift_Message::newInstance(); | |
$message->setTo(array( | |
"codins@mail.ru" => "Andrey Yatsenco", | |
"yatsenco@gmail.com" => "Andrey Yatsenco" | |
)); | |
$message->setSubject("This email is sent using Swift Mailer"); | |
$message->setBody("You're our best client ever."); | |
$message->setFrom("andrey@fora-soft.com", "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