php - Swiftmailer throwing error on SetBody -



php - Swiftmailer throwing error on SetBody -

i having error using swiftmailer libs.

$message_body = "body of message"; $transport = send_mail_transport(); //create mailer using created transport $mailer = swift_mailer::newinstance($transport); //create message $message = swift_message::newinstance(); $message->setbody('$message_body'); //displays $message_body in mail service client $message->setbody($message_body); //throws parse error in browser $message->setbody('body of message'); //works well. displays body of message in mail service client

//what problem intent values variables?

thanks

ok. figured out changed

$message->setbody("$message_body");

interestingly not documented in manual.

php swiftmailer

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -