|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: mail script with attachmentby atcroft (Monsignor) |
| on Jan 16, 2012 at 23:52 UTC ( #948229=note: print w/ replies, xml ) | Need Help?? |
|
The problem that appears to be occurring is that you are Base64 encoding the file name, rather than the content of the file. This is illustrated by decoding the value that appeared in the email:
MIME::Base64's documentation does not indicate that it can open a file on its own, but instead encodes the stream of bytes it is given as its first argument. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||