atached file mail


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting atached file mail
# 1  
Old 08-08-2003
atached file mail

How atached file mail to user for exemplo file with gzip xxx.gz?

ex: shell script: mailx -s "TEST SHELL" manoeldba@yahoo.com < $file <send content file>

how send file xxx.gz to user?
# 2  
Old 08-08-2003
One of the folks on here all the time posted a great script for sending attachments.

If it doesn't handle a gzip file, then take a look at this post
# 3  
Old 08-09-2003
ONe of the commands I always use is the following:

uuencode <filename> <newfilename> | mailx -s "subject here" <email address>

Always works for me

Brian
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Shell Programming and Scripting

Unable to attach a .txt file or .log file to mail and mailx command

Hi, I am trying to attach a .log file or .txt file to mail command to send an email once my ksh script executed. I am unable to use mutt command as it has been not installed and i am not supposed to install it. I have tried many ways by googling which has not helped me to succeed. Here is my... (5 Replies)
Discussion started by: Samah
5 Replies

3. Shell Programming and Scripting

Shell script to monitor new file in a directory and mail the file content

Hi I am looking for a help in designing a bash script on linux which can do below:- 1) Look in a specific directory for any new files 2) Mail the content of the new file Appreciate any help Regards Neha (5 Replies)
Discussion started by: neha0785
5 Replies

4. Shell Programming and Scripting

mail using mail address in a file

I have a file which contains few email address. I have few scripts which use the same mail address. so if any change in mail id like if any user do not want to receive the mail i can just edit a single file instead of many scripts. So i want the scripts to use that file. How can this be done. (2 Replies)
Discussion started by: gpk_newbie
2 Replies

5. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

6. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

7. Solaris

Atached storage to v890 --- very slow

Hello Experts, I have a StorEdge 3320 attached to V890, the problem is that I am copying data from v890's internal hdds to 3320's hdds, it is taking a-lot of time, the transfer is very slow. while I have checked the transfer from V890's internal hdd to another machines it is good. So, its mean... (15 Replies)
Discussion started by: bluetooth
15 Replies

8. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

9. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

10. Solaris

Disks atached to a Symbios 53C875, canīt see them.

Hi, I have SUN E450 box with Solaris 8 and a few internal disks, but i can only see the disks attached to one of the SCSI controlers. I think i canīt see the disks atached to two Symbios 53C875 SCSI controlers that apears in prtdiag output. Could be drivers? How can obtain those drivers to... (2 Replies)
Discussion started by: spacewalker
2 Replies
Login or Register to Ask a Question