LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2005, 04:08 AM   #1
hmacasiano
LQ Newbie
 
Registered: Oct 2005
Location: Manila, Philippines
Posts: 5

Rep: Reputation: 0
Help needed: attaching zip file using mailto


Im trying to write a script that will email a zip file to certain users. An old friend has a similar script but is not working with me.

Here's the part that emails the file.

zip -j -P creditsmphi $y.zip $y > /dev/null
echo -e '~*\n0\n/$WORKDIR/bdo-converted/$y.zip\n~.'| \
mailto htm@smprime.intranet -s "From $EMAIL $DATE" > /dev/null

By the way, I do get the email but without attachment.

Hope you could help. Thanks.
 
Old 10-03-2005, 04:39 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Mail command will not send attachment use mutt command, read man page or see how to Send mail with attachment http://www.cyberciti.biz/nixcraft/vi...ttachment.html
 
Old 10-03-2005, 05:09 AM   #3
hmacasiano
LQ Newbie
 
Registered: Oct 2005
Location: Manila, Philippines
Posts: 5

Original Poster
Rep: Reputation: 0
Is Mutt available for RedHat Linux?
 
Old 10-03-2005, 05:24 AM   #4
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Yup mutt is available for REDHAT as well as for all UNIX like os. Just use rpm command to install it or if you are on RHEL use up2date -i package-name command
 
Old 10-03-2005, 05:44 AM   #5
hmacasiano
LQ Newbie
 
Registered: Oct 2005
Location: Manila, Philippines
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for the input. It'll be of great help.

Another thing, do you know of a tool or a way for me to specify the email address of the sender? So that the recipient can just click on reply and the email add is already there.

To illustrate: our system generates files x, y and z on a periodic basis. file x is for branch1, file y is for branch 2, and file z for branch3. these files are to be emailed to the bank. ideally the bank should give some sort of a receipt to the three branches (with diff email addresses).

Presently, it is the root that send these files. So that when the bank replies.. it goes to the root mail account. what i want is for the "FROM" to refelct the individual email ads of these branches. It's like spoofing...

Hope you could provide an input on these. Thanks again.
 
Old 10-03-2005, 08:04 PM   #6
hlpboplz
Member
 
Registered: May 2005
Location: West Central Alabama
Distribution: Fedora Core 4
Posts: 34

Rep: Reputation: 15
Quote:
Originally posted by hmacasiano
Thank you for the input. It'll be of great help.

Another thing, do you know of a tool or a way for me to specify the email address of the sender? So that the recipient can just click on reply and the email add is already there.

To illustrate: our system generates files x, y and z on a periodic basis. file x is for branch1, file y is for branch 2, and file z for branch3. these files are to be emailed to the bank. ideally the bank should give some sort of a receipt to the three branches (with diff email addresses).

Presently, it is the root that send these files. So that when the bank replies.. it goes to the root mail account. what i want is for the "FROM" to refelct the individual email ads of these branches. It's like spoofing...

Hope you could provide an input on these. Thanks again.
After you install mutt do a goole for mutt.rc. You should find plenty of info on setting all sorts of prams for mutt.
This would be a good place to start: http://www.rohrbach.de/files/rc/.muttrc
 
Old 10-04-2005, 03:34 AM   #7
hmacasiano
LQ Newbie
 
Registered: Oct 2005
Location: Manila, Philippines
Posts: 5

Original Poster
Rep: Reputation: 0
I downloaded mutt-1.4.1-5.i386.rpm.
When i was trying to install it in my server, the ff message appeared:

[root@db1 htm]# rpm -i mutt-1.4.1-5.i386.rpm
error: failed dependencies:
libc.so.6(GLIBC_2.3) is needed by mutt-1.4.1-5
libc.so.6(GLIBC_2.3.3) is needed by mutt-1.4.1-5
libcrypto.so.4 is needed by mutt-1.4.1-5
libncursesw.so.5 is needed by mutt-1.4.1-5
libssl.so.4 is needed by mutt-1.4.1-5

So I tried to look for the rpms needed. Unfortuantely, I cannot find one for RedHat 2.4.1
Is it OK to install the above rpms from higher linux version like 7, 8 or 9?
Please help.
 
Old 10-04-2005, 04:27 AM   #8
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
You are using too old version of RH Linux distro it is better to get new version. Else Use CD that comes with your distro.
 
Old 10-04-2005, 05:26 AM   #9
hmacasiano
LQ Newbie
 
Registered: Oct 2005
Location: Manila, Philippines
Posts: 5

Original Poster
Rep: Reputation: 0
Can mutt spoof email address?
Please see my earlier post regarding my need.
Thanks.
 
Old 10-06-2005, 05:21 AM   #10
hlpboplz
Member
 
Registered: May 2005
Location: West Central Alabama
Distribution: Fedora Core 4
Posts: 34

Rep: Reputation: 15
Quote:
Originally posted by hmacasiano
Can mutt spoof email address?
Please see my earlier post regarding my need.
Thanks.
The answer to your question is in the link I posted about the muttrc file. Yes it can display any email address you want it to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 02:50 AM
Attaching an intel Hex file. krushna Linux From Scratch 0 06-07-2004 04:47 PM
zip the file ashley75 Linux - General 1 05-01-2004 01:52 PM
Information needed: Zip 250 IDE cnjohnson *BSD 1 08-28-2003 02:51 AM
zip file athenerx Linux - Newbie 1 06-24-2001 07:15 PM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration