Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

MIME::xxx sending mail with duplicate discription

by opensourcer (Monk)
on Feb 22, 2011 at 18:36 UTC ( #889644=perlquestion: print w/ replies, xml ) Need Help??
opensourcer has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
The MIME::Lite::TT::HTML is sending the description two times in a mail (two times what I have typed from hello to regards, one as plain text and one in html). Below is the code.
my ( $myhash ) = shift; $params{Date} = $myhash->{DATEPOSTED}; $params{Title} = $myhash->{TITLE}; $msg = MIME::Lite::TT::HTML->new( From => 'arun@xxxxxxx.net', To => 'root@xxxxxx.net', Subject => $myhash->{TITLE}, Template => { html => 'sometemp. +html.tt', }, TmplOptions => \%options, TmplParams => \%params, ); # Set our content type properly #$msg->attr("content-type" => "multipart/mixed"); #$msg->attr("content-type" => "text/html"); # Attaching resume $msg->attach( Type => 'application/doc', Path => 'attachments', Filename => 'books.doc', Disposition => 'attachment', );

Comment on MIME::xxx sending mail with duplicate discription
Download Code
Re: MIME::xxx sending mail with duplicate discription
by Corion (Pope) on Feb 22, 2011 at 18:41 UTC

    I would assume that this is by design, as there are mail readers that don't understand (or render) HTML. Also, the code of MIME::Lite::TT::HTML seems to actively parse out the text from HTML if no text is given.

    Why do you consider that a problem?

      Resolved issue by adding  text    =>  'Empty Letter.tt' empty file, to Template :)
        If by "resolved" you mean giving people a blank page if they can't render HTML or choose not to. Good way to get flagged as spam...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://889644]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-07-25 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (173 votes), past polls