in reply to Sending a variable's content as mail attachment
An 'attachment' exists because of MIME the Multipurpose Internet Mail Extensions. MIME allows you to send an 'attachment' in an email which is essentially a just a plain text data stream. To generate this MIME formatted plain text for transmission by Net::SMTP I suggest you use MIME::Lite or MIME::Entity To see what MIME actually looks like print $msg->as_string if you are following the example code in the modules.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|