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.
Thanks.
Cubefeed
Last edited by Scott; 06-26-2010 at 10:21 AM..
Reason: Removed link
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. UNIX for Advanced & Expert Users
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
4. Shell Programming and Scripting
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 username@hostname.com (3 Replies)
Discussion started by: karumudi7
3 Replies
5. Solaris
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. Red Hat
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 example.com the SMTP server should use the... (0 Replies)
Discussion started by: max29583
0 Replies
7. Shell Programming and Scripting
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 firstperson@gmail.com
Julia-Roberts... (3 Replies)
Discussion started by: baris35
3 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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 raghu.s@hps.com
file2.csv to kiran.m@hps.com
file3.csv to kenni.d@hps.com
file4.csv to rani.d@hps.com
file5.csv to sandya.s@hps.com... (2 Replies)
Discussion started by: ROCK_PLSQL
2 Replies
WEDGED(8) System Manager's Manual WEDGED(8)
NAME
wedged - HylaFAX modem wedged script
SYNOPSIS
/var/spool/hylafax/bin/wedged devid device
DESCRIPTION
bin/wedged is the command script invoked by the facsimile server when a modem is deemed to be in an irreparable state and requires operator
intervention. This decision is based on the setting of the MaxSetupAttempts configuration parameter described in hylafax-config(5). The
default wedged script sends electronic mail to the FaxMaster alias. The interval at which emails are sent can be configured in the
etc/FaxDispatch file by setting the WEDGED_EMAIL_INTERVAL variable to the desired number of minutes (emails will be sent no more than every
WEDGED_EMAIL_INTERVAL minutes, until the wedged condition persists). If the variable WEDGED_DISABLE_FAXGETTY is set in etc/FaxDispatch
then the script will attempt to disable any faxgetty processes spawned by the init(8) process for the problematic modem. In addition the
faxq(8) process automatically disables use of the modem for servicing outbound jobs.
The devid argument is the identifier derived from the name of the modem's device file by substituting ``_'' characters for ``/'' charac-
ters; e.g. term_10 for /dev/term/10. The device argument is the name of the character special device associated with the modem.
If there exists an executable file /var/spool/hylafax/etc/resetmodem then that file will be executed upon execution of the wedged script in
an effort to recover the modem.
FILES
/usr/lib/sendmail for delivering mail
SEE ALSO
faxq(8), hylafax-config(5)
October 3, 1995 WEDGED(8)