Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: MIME::Lite Error

by marto (Cardinal)
on Aug 21, 2014 at 10:34 UTC ( [id://1098217]=note: print w/replies, xml ) Need Help??


in reply to MIME::Lite Error

Can you prove that MIME::Lite is adding such things? Can you provide an example which reproduces the issue you claim? How do I post a question effectively?.

Replies are listed 'Best First'.
Re^2: MIME::Lite Error
by Badriperl (Initiate) on Aug 21, 2014 at 10:56 UTC

    Hi Marto, Thank you for the reply. I am not saying MIME::Lite is adding it. Sorry if my post was offensive, all my question was I am getting those unwanted characters, how do I remove it? I am using MIME:Lite for sending mails was just for the information.

        Hi Marto, This is the code snippet, I am sure that the data which I am attaching doesn't have HTML tags or something unwanted. It could be something wrong with the parser or encoding/decoding.

        sub mail { my ($msg); my ($receiver, $ccList, $sender, $replyTo, $subject, $body) = @_; $subject || die "Error: subject Not Defined $!\n"; $receiver || die "Error: receiver Not Defined $!\n"; $ccList || die "Error: CC List Not Defined $!\n"; $sender || die "Error: sender Not Defined $!\n"; $replyTo || die "Error: replyTo Not Defined $!\n"; $body || die "Error: body Not Defined $!\n"; $msg = MIME::Lite->new( To => $receiver, From => $sender, "Reply-To" => $replyTo, cc => $ccList, Subject => $subject, Type => 'multipart/related' ) or die "Error creating multipart container: $!\n"; $msg->attach( Type => 'text/html', Data => qq{ <body> @$body </body> }, ); $msg->send; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found