Created
May 20, 2009 06:07
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
foreach ($aMail as $rMail) { | |
//Create the Transport | |
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'tls') | |
->setUsername('assistenza@elcosistemi.it') | |
->setPassword('SoftwareService'); | |
//Create the Mailer using your created Transport | |
$mailer = Swift_Mailer::newInstance($transport); | |
//Create a message | |
$message = Swift_Message::newInstance() | |
->setSubject($rMail['subj']) | |
->setFrom(array('assistenza@elcosistemi.it' => 'Elco Sistemi - Assistenza')) | |
->setTo($rMail['dest']) | |
->setBody($rMail['body']); | |
//Send the message | |
$result = $mailer->send($message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment