bigup401 has asked for the wisdom of the Perl Monks concerning the following question:

anyone has faced this problem. you cant use string in mime lite it delivers msg with string $ in plain as it is

$name = 'John Deo'; $to = 'abcd@gmail.com'; $cc = 'efgh@mail.com'; $from = 'webmaster@yourdomain.com'; $subject = 'Test Email'; $message = 'This is test email from $name'; $msg = MIME::Lite->new( From => $from, To => $to, Cc => $cc, Subject => $subject, Data => $message ); $msg->send;

Replies are listed 'Best First'.
Re: mime lite
by huck (Prior) on Apr 08, 2017 at 16:57 UTC

    You mean $name? in $message thats just txt because its in single quotes?

    $message = "This is test email from $name"; $message = 'This is test email from '.$name;

      thanks huck

Re: mime lite
by LanX (Saint) on Apr 08, 2017 at 17:09 UTC
Re: mime lite
by Anonymous Monk on Apr 08, 2017 at 17:19 UTC