Solved

Automatic Email

Posted on 1998-12-21
2
259 Views
Last Modified: 2010-04-21
Hi,
I want to know how the automatic email is implemented
in UNIX and especially how I can change the email
sender's name from "web server" to whoever issues
the sending action.
Does someone know this? Please help me!
Thanks in advance!

hx
0
Comment
Question by:hx
2 Comments
 
LVL 1

Accepted Solution

by:
ramshakal earned 200 total points
ID: 2008478
The mail utility comes with almost all UNIX operating system. The UNIX provides
SMTP (Simple mail transfer protocol). Suppose UNIXHOST is your unix server then
You can see it by doing
telnet  UNIXHOST 25
Here for sending mail you can specify different option
To specify senders name do
mail from: <nameof sender>
To specify recipient do
rcpt to: <Recipient>
finally to send the data do
data
after it you can enter your message

So this is simple protocol. Using it you can implemnt your own mail transfer utility.
For example to change the email senders name simply pick the name and find a way
to use it in
mail from: <senders name>

0
 

Expert Comment

by:bcn
ID: 2008479
I think you want it:

you need a file where email destination. for exemple:

file_emails:
email1@dom.com
email2@dom.com
email3@dom.com
....
emailn@dom.com

And then you need a shell, that read from this file, and send
mail. For exemple.

shell_sendmail.sh it contains.

for i in `cat file_emails`
do
    echo "send....." $i
    /usr/lib/sendmail -F "Title" -f 'adress' $i < mail_send.txt

    if [ $? -ne 0 ]
    then
        echo "Error" $i
    fi

done

where send_mail.txt has the message from send.
I think hopes you.

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now