04-14-2001
you can also use sendmail:
#!/bin/bash
TO="someone@somewhere.com"
CClist="one@of3 two@of3 three@of3"
FROM="you@youraddress.com"
/usr/sbin/sendmail -t <<EOF
To: $TO
CC: $CClist
From: $FROM
Subject: $Subject
The message
EOF
if you have metamail in your system use metasend. this is flexible and more easiest in mail scripting.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
How can I write a HTML file in Unix.
Once I do that, I want to send this file as a body of a mail, along with writing a subject for the mail I am sending through unix.
How can that be done? (0 Replies)
Discussion started by: diwa81
0 Replies
2. Solaris
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
3. Shell Programming and Scripting
Hi All,
Is there any way Unix shell script can directly read a mail on a mail server
(for eg. abc@xyz.com) and save it as a text file in a unix directory ?
Thanks
PRKS
---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ----------
I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies
4. Solaris
I hate Monday's...
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
DONE!
root@bender:/> mail
mail: Write error in copymt()
Google seems to come up short for this error... (2 Replies)
Discussion started by: ippy98
2 Replies
5. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
6. Shell Programming and Scripting
hi,
i am very much new to shell scripting i have a requirement that i have to develop a License Renewal Alert system
that has to give a alert mail to the users before 30days of user account expiration, by checking expiration date of the user with the data base, this system will... (0 Replies)
Discussion started by: deepu_Shscripts
0 Replies
7. UNIX for Advanced & Expert Users
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
8. Shell Programming and Scripting
Hi Guys,
I am not Good at scripting.
I need to write a script such that if output of command shows the particular word in output then send mail to abc@compay.com
-bash-3.2$ ps -ef | grep bpbkar
root 6040 1 0 13:05:19 ? 0:00 bpbkar -r 2678400 -ru root -dt 47395 -to 0... (20 Replies)
Discussion started by: manalisharmabe
20 Replies
9. UNIX for Beginners Questions & Answers
Hi Team,
I got a requirement to send a mail to the individual users of a unix server about their respective groups. can some one help me to provide the script as I am unable to write that.
I tried with below lines but I come out with errors.
cat /etc/passwd | awk -F':' '{ print $1}' |... (6 Replies)
Discussion started by: harshabag
6 Replies
10. UNIX for Advanced & Expert Users
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
wwsetup(8) System Manager's Manual wwsetup(8)
NAME
wwsetup, wnn - Sets up the 8-bit option for sendmail and the Wnn character-cell input method for Japanese
SYNOPSIS
/usr/sbin/wwsetup
DESCRIPTION
The wwsetup script performs one or both of the following tasks: Enables or disables 8-bit transmission code, which is an option supported
by sendmail software
By default, sendmail uses the 7-bit SMTP mail transmission protocol that is the standard for sending mail over a TCP/IP network.
Note that enabling the 8-bit option is not generally recommended because it violates the SMTP mail transmission protocol. Config-
ures the Wnn software that supports a character-cell input method that is widely used in Japan
If the Tru64 UNIX IOSJPWNNnnn subset is installed, the wwsetup script asks if you want to create the following links if they do not
already exist on the system:
/usr/local/bin/Wnn4 --> /usr/i18n/bin/Wnn4 /usr/local/bin/wnn --> /usr/i18n/lib/wnn
The script also prompts you to enter the password for Wnn dictionaries if they do not already exist on the system.
Both the links and the dictionary password must be in place before Wnn software can be used.
SEE ALSO
Commands: sendmail(8), jserver(1wnn)
Note that the jserver(1wnn) reference page is available only in Japanese and is included in the subset that contains Japanese translations
of reference pages.
Others: i18n_intro(5), Japanese(5), l10n_intro(5)
wwsetup(8)