in reply to Attachments with NET::SMTP

Net::SMTP implements the SMTP protocol, so it can send attachements. You just have to format the body and headers correctly. There are a few modules on CPAN that can help you do this. I suggest looking at MIME::Lite

Replies are listed 'Best First'.
Re^2: Attachments with NET::SMTP
by Anonymous Monk on Dec 27, 2005 at 07:44 UTC
    I have decided to rewrite the script using MIME::Lite, but do you know if this will let internet users email files from there local computer to me?

      You can set up your web script in that way, but it seems an awfully roundabout and wasteful way to transfer files. Why don't you just have the user upload the file to the server where you can access it after receiving the email (you could put the file path into the generated email)? Transferring files via email has a few problematic aspects, most ISPs these days block certain attachment file types for example, so why do it unneccessarily?


      A computer is a state machine. Threads are for people who can't program state machines. -- Alan Cox
        I had thought about that and it does seam wiser, can you suggest any modules to look at for uploading to my server?