Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Problem with Mime::lite and .doc files

by pKai (Priest)
on May 19, 2007 at 16:33 UTC ( [id://616336]=note: print w/replies, xml ) Need Help??


in reply to Problem with Mime::lite and .doc files

The Type is only a hint to the receiving MUA. You can specify foo/bar and everything is fine, as long as the receiver knows what to do with objects of that type.

You didn't specify your error symptoms beyond (…nothing happens…), but I would guess your MUA does not show you the generated "inline" Word document, which is an understandable decision.

You might try to attach the document by

$msg->attach(Type =>'application/msword', Path =>'test.doc', Disposition => 'attachment', );

instead.

At least the generated mail looks good to my eyes. Though it is a bit weird to send the main text base64-coded (i. e. BINARY). I would rather use Type => 'TEXT' there.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-18 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found