Home » Infrastructure » Unix » Sending multiple attachments using mailx or sendmail
Sending multiple attachments using mailx or sendmail [message #97527] Tue, 09 July 2002 11:00 Go to next message
Dinesh
Messages: 31
Registered: October 2001
Member
Hi ,

Is there anyway i can send multiple attachments with an email using either mailx or sendmail. e.g I would want to send an email with all sql files in a directory (*.sql) attached to it.

Any help is appreciated
Re: Sending multiple attachments using mailx or sendmail [message #97528 is a reply to message #97527] Tue, 09 July 2002 12:32 Go to previous messageGo to next message
Grant
Messages: 578
Registered: January 2002
Senior Member
Tar them into one file. WINZIP can handle tar files if they are headed for a windows machine. Else the unix machine can handle it.

tar -cvf sql.tar *.sql
compress sql.tar
mailx -s "SQL Scripts" mailrecipient < sql.tar.Z
Re: Sending multiple attachments using mailx or sendmail [message #97612 is a reply to message #97527] Thu, 12 September 2002 01:43 Go to previous messageGo to next message
Shaun
Messages: 5
Registered: July 2002
Junior Member
Rolling the files up with 'tar' and compressing
with 'compress' or 'gzip' works OK.
Another solution is to 'uuencode' each file within a
sub-shell and pipe the whole lot into mailx. eg:

(uuencode file_1 file_1.txt; uuencode file_2 file_2.txt) | mailx -s "My SQL files" me@somewhere

Works for me.
Good luck.
Shaun.
Re: Sending multiple attachments using mailx or sendmail [message #97633 is a reply to message #97612] Fri, 27 September 2002 06:34 Go to previous messageGo to next message
Leon
Messages: 1
Registered: September 2002
Junior Member
Hi Shaun

This is what I used to use as well. Going from a Linux
server to a M$ Exchange Server (Relay) and finaly to a Win XP client... Well it used to work Great....
Now All I get is the uuencoded stuff on the page as text...

Have you seen this before?

Thanx

Leon
Re: Sending multiple attachments using mailx or sendmail [message #97637 is a reply to message #97612] Mon, 30 September 2002 04:46 Go to previous messageGo to next message
Shaun
Messages: 5
Registered: July 2002
Junior Member
I'm afraid I can't comment on Windoze platforms - as long at it works on Unix that's good enough for me.
Rgds.
Shaun.
Re: Sending multiple attachments using mailx or sendmail [message #97732 is a reply to message #97527] Thu, 05 December 2002 08:35 Go to previous message
tarso
Messages: 1
Registered: December 2002
Junior Member
shaun
did you get this to work
I am on solaris 8 and need to send attachments but having no luck.
Previous Topic: Re: 8.1.7 installation on Redhat 7.1 -help me
Next Topic: Redhat 8.0 and Oracle Dev 9.0.2
Goto Forum:
  


Current Time: Fri Apr 19 18:57:13 CDT 2024