in reply to send mail with inline/attachment
On a side note, I'd highly recommend checking the MIME type using File::MMagic, or similar, prior to sending it. Just because a file has a ".jpg" extension, doesn't actually guarantee that it is one.
Just a thought.
In Section
Seekers of Perl Wisdom