Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-13-2007, 01:46 PM   #1 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 164

Skuzzle

Default email script

I have an 800mb archive.. now its been split to 2mb files but i need to find a way to email these files all to the same address.

As you can imagine, setting up a new email for each is not an option as this may be happening regularly.

Any ideas on a script or other similar method ??
__________________
Skuzzle - Powered by Badgerbyte Web & IT Services
www.drive4fun.co.uk check it out
Skuzzle is offline  
Old 02-17-2007, 01:10 PM   #2 (permalink)
ainstushar's Avatar
 
Junior Techie

Join Date: Oct 2005

Posts: 88

ainstushar

Default

i have other alternative, if you just want to transfer the files, then use hosting services like megaupload and rapidshare or yousendit. I don't know a lot about linux scripting, but i think that you can easily do it with php. hope that helps.
ainstushar is offline  
Old 02-17-2007, 01:28 PM   #3 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 164

Skuzzle

Default

nope.. not what im looking for. I have a googlemail account with 2.8gb so thats why i want to email

although saying that, php may be the way forward.
__________________
Skuzzle - Powered by Badgerbyte Web & IT Services
www.drive4fun.co.uk check it out
Skuzzle is offline  
Old 02-18-2007, 02:52 PM   #4 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 164

Skuzzle

Default

ok I have set up postfix and am using mutt now and can happily send attachments via command line using

mutt -s "backup" -a /home/backup.tar.gz

But now I can also use split to make it into 2mb files.

Any ideas on how id write a script to run through all of the files in a folder and operate that mutt command ??
__________________
Skuzzle - Powered by Badgerbyte Web & IT Services
www.drive4fun.co.uk check it out
Skuzzle is offline  
Old 02-21-2007, 10:38 AM   #5 (permalink)
mBernhardt's Avatar
 
Super Techie

Join Date: Jul 2006

Location: Ohio

Posts: 279

mBernhardt

Default

If you can name all the archives using a predictable system you could setup a for loop or something like that.

for x = 1 to 200 do whatever

I don't know the exact syntax off the top of my head. But something along those lines would be worth looking into.
__________________
"i would never use a firewall, even without a router protecting me. Firewalls are just wastes of memory."
name omitted to protect the innocent

the cake is a lie
mBernhardt is offline  
Old 02-21-2007, 03:19 PM   #6 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 164

Skuzzle

Default

very simple this was
pretty much

for u
do
blah blah mail command blah
done
__________________
Skuzzle - Powered by Badgerbyte Web & IT Services
www.drive4fun.co.uk check it out
Skuzzle is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On