Visit Our UNIX and Linux User Community

mailx script to do multiple emails

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mailx script to do multiple emails
# 1  
Old 06-25-2010
mailx script to do multiple emails

I am looking for a script that I can use with mailx to do the following:

1. Grab usernames from a flat file (one at a time)

2. Attach a file to the email and mail out.



Last edited by Scott; 06-26-2010 at 10:21 AM.. Reason: Removed link
# 2  
Old 06-25-2010
Nobody will answer this post unless you state the file format of the attachment, the Operating System and version, and confirm that this is nothing to do with commerical spam.
# 3  
Old 06-26-2010
Understood. In this day and age one has to be careful, right?

Sendmail V8.13.6

This is actually a second part of a script that sends backup tarballs every day to people in our group. The first part of the script does an rsync of the developers directory and creates a tarball. The script should email those tarballs to the developers to keep a copy for themselves.

Any suggestions will be appreciated.



Last edited by Scott; 06-27-2010 at 06:34 AM.. Reason: Removed link again...
# 4  
Old 06-27-2010
If you can use "sendmail" directly rather than "mailx" it becomes easier.
The site search of this site for "sendmail attachment uuencode" should help.

Previous Thread | Next Thread
Test Your Knowledge in Computers #49
Difficulty: Easy
A USB hard drive is considered to be a primary storage device for personal computers.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending files to multiple emails

Hi All, I want to send each file to each email id as below. Instead of writing saparate 10 mail commands can we do it in a simple step. file1.csv to file2.csv to file3.csv to file4.csv to file5.csv to (2 Replies)
Discussion started by: ROCK_PLSQL
2 Replies

2. Shell Programming and Scripting

Avoid multiple emails being sent - Counter, Loop?

Hello, I have currently coded a bash script below in which it does the following: # Archives compressed file from another location. Basically it moves *.gz files to another location. The script also sends an email whenever a new compressed file is placed. This is the issue that i... (5 Replies)
Discussion started by: Wizard_1979
5 Replies

3. Shell Programming and Scripting

Mailx, Table, Multiple Email script

Hello, I am able to write some simple scripts in linux but this time it seems a little bit hard for me. Objective: Script will read Database.txt file and will submit separate emails to multiple persons. Database.txt Elvis-Presley user_ssh1 ##20140403 Julia-Roberts... (3 Replies)
Discussion started by: baris35
3 Replies

4. Red Hat

Postfix: emails addressed to multiple smart hosts

Hi, I am in process of setting up a SMTP server on RHEL 6 using Postfix. I am stuck at one point so any help would be appreciated. I have configured my xsender to use this new SMTP server as its mail server. If I send any emails addressed TO the SMTP server should use the... (0 Replies)
Discussion started by: max29583
0 Replies

5. Solaris

How to use text Fonts while sending emails from mailx?

Hi Team, I want to use "Courier New" fonts while sending emails using mailx command from solaris command prompt. Because my SQL output is not printing in correct format in the email. Please assist. Let me know for any details. Thanks, (1 Reply)
Discussion started by: Mukharam Khan
1 Replies

6. Shell Programming and Scripting

Mailx Emails are going to Junk, How to stop them?

I wrote a shell script, the result to be Emailed. So I used mailx command in my Script. But the mail was going to Junk folder. Is there any troubleshoot for this? the mail was coming as (3 Replies)
Discussion started by: karumudi7
3 Replies

7. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

8. Shell Programming and Scripting

Multiple emails via telnet in a script

Hi everyone, I'm writing a script that connect to telnet and write some email taking the RCPT from a file. My problem is the fact I'm not able to put all the addresses I have in the file as subject for the "RCPT TO:":confused:... Can anyone please help me? Thanks ps: I wrote this right... (7 Replies)
Discussion started by: t_waspy
7 Replies

9. Shell Programming and Scripting

uuencode mailx - send multiple emails

The following is an extract from one of my Shell Scripts which uses uuencode and mailx to send an email with multiple attachements: uuencode $LOG_REPORT $(basename $LOG_REPORT) uuencode $HTML_FILE $(basename $HTML_FILE ) ) | if then mailx -b "$COPY_TO" -s "$SUBJECT" -r "$MAIL_FROM"... (2 Replies)
Discussion started by: suthera
2 Replies

Featured Tech Videos