in reply to Sending an Email with attachment and body of the email using perl

The relevant FAQ recommends Email::MIME so you might want to look at that too.

  • Comment on Re: Sending an Email with attachment and body of the email using perl