Welcome to WebmasterWorld Guest from 18.208.186.19

Forum Moderators: phranque

Message Too Old, No Replies

Auto-forward email upload files directly to FTP

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

New User

10+ Year Member

joined:Sept 23, 2009
posts: 1
votes: 0


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

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

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5852
votes: 200


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]!

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

New User

10+ Year Member

joined:Sept 23, 2009
posts:1
votes: 0


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]

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

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


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.

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

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


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?

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

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


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.