Solved

Automatic Email

Posted on 1998-12-21
2
265 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

679 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