Forum Moderators: phranque

Message Too Old, No Replies

Auto-forward email upload files directly to FTP

         

smackahoeten

6:01 pm on Sep 23, 2009 (gmt 0)

10+ Year Member



I have several files that get sent to an email every day (15-25 files). I need these files on my FTP and I am tired of having to download them to my computer and then use an FTP client to upload them. I have already spoken with the company that is sending me the files, and they stated they cannot direct these files to my or any FTP, they can only e-mail them. It’s just not efficient and I would love to be able to just auto-forward them directly to my FTP.

Please help

LifeinAsia

6:22 pm on Sep 23, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You may be able to write some sort of custom script that periodically checks an e-mail account and downloads any attachments.

And welcome to Webmaster World [webmasterworld.com]!

smackahoeten

6:27 pm on Sep 23, 2009 (gmt 0)

10+ Year Member



Thank you, do you know where I might be able to find such a script? <snip>

[edited by: lawman at 11:19 pm (utc) on Sep. 23, 2009]

kaled

10:04 am on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm guessing but you may have to write a script yourself (in perl). It would have to run on the destination server and pull the files across (as email, without ftp) and be scheduled to run hourly, or thereabouts.

There are various sites that act as repositories/directories of scripts so it's worth looking for something ready-made, but I don't hold out much hope.

Kaled.

g1smd

10:09 am on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If the files are sent as attachments, are they already stored as files on the mail server?

If they are, is it just a case of simply copying them over to the right folder inside the server?

kaled

11:09 am on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the files are sent as attachments, are they already stored as files on the mail server?

I was under the impression that mail servers merely store and transmit the raw email data (adding to the headers as necessary). Do mail servers break down emails for storage and rebuild them for delivery? For attachments, this would save disk space, so there would be some logic to this behaviour.

Kaled.