Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Automatic Email

Posted on 1998-12-21
2
Medium Priority
?
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
ramshakal earned 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:
Suggested Courses

596 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