Jan 20, 2015, 3:31 PM
Post #1 of 2
Sending an email with attachment (remote file)
I'm currently using MIME Lite to send email from a linux server. I have an attachment that is located in another server and I can access it using a url, for example http://test.com/test.jpg. If I have a perl script that sends out email from another server using MIME Lite, can I somehow add the http://test.com/test.jpg image as an attachment using the url?
I've tried this:
attach $msg (
Type => 'application/octet-stream',
Encoding => 'base64',
Path => "http://test.com/test.jpg",
Filename => "test.jpg"
but it doesn't work. Does anyone know a work around for this?