Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: MIME::Lite::TT::HTML and attachments

by kcott (Abbot)
on Jan 30, 2013 at 04:53 UTC ( #1015960=note: print w/ replies, xml ) Need Help??


in reply to MIME::Lite::TT::HTML and attachments

G'day swandown,

This is just an untested suggestion based on the documentation for MIME::Lite::TT::HTML and MIME::Lite.

MIME::Lite::TT::HTML - METHODS shows the constructor (new()) returning a MIME::Lite object (with html mail format).

MIME::Lite - Create a multipart message has:

$msg = MIME::Lite->new( ..., Type => 'multipart/mixed' );

followed by $msg->attach(...) calls.

So, perhaps leaving out the $msg->attr(...) is the right thing to do if your constructor looks more like:

$msg = MIME::Lite::TT::HTML->new( ..., Type => 'multipart/mixed' );

-- Ken


Comment on Re: MIME::Lite::TT::HTML and attachments
Select or Download Code
Replies are listed 'Best First'.
Re^2: MIME::Lite::TT::HTML and attachments
by swandown (Novice) on Jan 30, 2013 at 17:20 UTC
    Hi Ken, thanks so much for taking the time to reply. I had however already tried what you've suggested and the behaviour was just the same. For the moment I'm going to send an empty txt template . . . but it's not satisfactory. Cheers, Mark

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2015-07-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls