Jump to content

swift mailer help


darkfreaks

Recommended Posts

i am new to this is this correct will this send out emails correctly? :confused:

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.