I have mail scripts written using SMTP but don't know how to send attachments. I just need to see if it can be done and what the code is if this can be done.
You can do this, but if you're using the Net::SMTP module alone, it's quite the pain. You need to encode your attachments in Base64, create unique delimiters in your message, and set the content type to multipart. Better to pick a different module -- I recommend MIME::Lite. You can get it off of CPAN of course.
Hey friend,
thanks for the advice but I forgot to mention I'm doing all of this from an NT box. that's what I have running the perl interpreter. IS Mime::Lite indepedent of OS? I know some of these mail modules I can't use cause I'm not running this stuff from a UNIX box
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.