Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-19-2002, 12:00 AM   #1
LQ Newbie
Registered: Sep 2001
Posts: 15

Rep: Reputation: 0
Using mail from the command line

I would like to send out email to a Java User Group list using the mail program on Linux. I have a script that will read a list of email addresses from a file and send out email to each of the required recipients.

The man pages for the program do not show any any way of adding a reply-to address as the first few lines from the man pages quoted below show.

MAIL(1) BSD General Commands Manual MAIL(1)

mail - send and receive mail

mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]

Mail is an intelligent mail processing system, which has a command syntax
reminiscent of ed(1) with lines replaced by messages.
Is there any way of changing the default reply-to address which is myUserName@ourLinuxBoxDomain to my work email address?

I can't seem to find any kind of documentation on doing this. I'd be just as happy if someone could point me to some place that has the appropriate documentation.

Old 12-19-2002, 12:54 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,683

Rep: Reputation: 219Reputation: 219Reputation: 219
As far as I know, you can't do this using mail (but I may be wrong). Instead I'd use a script that reads a list of emails, and an email with "From:" line and send it via your mail server.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send mail from command line buskmann Linux - Newbie 7 07-23-2006 11:18 PM
can i send mail from command line? iflorea Linux - Software 6 11-02-2005 08:08 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 08:52 PM
bash command line smtp mail nutthick Programming 1 01-23-2005 03:23 PM
sanding mail from the command line juanb Linux - General 2 02-06-2003 12:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration