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; Quote 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 Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/228521-swift-mailer-help/#findComment-1178526 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.