?
Solved

Automatic Email

Posted on 1998-12-21
2
Medium Priority
?
269 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

Industry Leaders: 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

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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
Course of the Month13 days, 17 hours left to enroll

800 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