Syntactic Confectionery Delight | |
PerlMonks |
Sending a variable's content as mail attachmentby sdyates (Scribe) |
on Dec 16, 2002 at 20:27 UTC ( [id://220333]=perlquestion: print w/replies, xml ) | Need Help?? |
sdyates has asked for the wisdom of the Perl Monks concerning the following question: My cgi scripts are served from apache and they are all in perl. Therefore, I cannot use perl to create or write files as apache does nto allow this. I want to be able to use email to send an array, @ARRAY2 as an attachment. However, Net::SMTP does not seem to allow this from the man pages. However, I am using the Net::SMTP for my mail. Is there a way to trick Net::SMTP to send a scalar as an attachment. All I want to do is send simple plain text, and yes, it needs to be sent as an attachment and not included with in the body I thought of using system() commands, but that is just a bad patch. And opening up apache more does not seem like a smart solution either. Further, I am convinced that there is a smart way for perl to be able to deliver a solution, just looking for a few thoughts on how to do this Thanks,Simon update (broquaint): title change (was The best way to attach a acalar)
Back to
Seekers of Perl Wisdom
|
|