Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Mail Attachment.

by barrd (Prior)
on Dec 15, 2003 at 17:56 UTC ( #314866=note: print w/ replies, xml ) Need Help??


in reply to Mail Attachment.

"my_message" is never get printed...
Nor in its current state would you expect it to, why have you put it in an array? Change it to a string like so:
... $my_message = 'Hello world Look at my attachment'; $msg = MIME::Entity->build(From => 'me@myhost.com', Type => "multipart/mixed", To => 'user@company.com', Subject => "Hello, ! ", Data => $my_message);
There, that should've worked.

It gives some bogus cannot access/read-only file error messages...
Adding the actual error message might have helped but as a quick guess I'd say check the documentation for the attach() paramater: Encoding. That's probably the cause?


Comment on Re: Mail Attachment.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (15)
As of 2015-07-31 20:43 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 (282 votes), past polls