in reply to email for both plain text and html
OK - you need to learn about MIME messages before attempting this.
MIME is the standard that allows you to send emails including attachments across the internet. Whenever you send an email message including an attachment, what you're actually sending is a MIME message, that includes two (or more) parts - one containing your message, the other containing the attachment.
MIME also allows you to send "multipart/alternative" messages - which basically means that you can send a message in both HTML and plain text (and also PDF / Word / Whatever) format, and the recipient's mail client will decide which version to display to the user according to its capabilities, and the user's preferences. This is what you actually want to do in this case.
The MIME::Lite module is one of a number on the CPAN that can help you do what you want. I'd suggest reading through the docs for this module, and googling for "MIME" to get an understanding as well.
|
|---|