darkfreaks Posted February 22, 2011 Share Posted February 22, 2011 i am new to this is this correct will this send out emails correctly? require_once 'lib/swift_required.php'; //setup the mailer $transport = Swift_MailTransport::newInstance(); $mailer = Swift_Mailer::newInstance($transport); $message = Swift_Message::newInstance(); $message ->setSubject('Pick 3 Special'); $message ->setFrom(array($email_from => $first_name)); $message->setSender($email_to); $message ->setBody($email_message); $result = $mailer->send($message); return $result; Link to comment https://forums.phpfreaks.com/topic/228521-swift-mailer-help/ Share on other sites More sharing options...
optikalefx Posted February 23, 2011 Share Posted February 23, 2011 only 1 way to find out Link to comment https://forums.phpfreaks.com/topic/228521-swift-mailer-help/#findComment-1178508 Share on other sites More sharing options...
BlueSkyIS Posted February 23, 2011 Share Posted February 23, 2011 i agree. WHAT HAPPENS WHEN YOU TRY IT? Link to comment https://forums.phpfreaks.com/topic/228521-swift-mailer-help/#findComment-1178526 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.