LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 12-18-2002, 11:00 PM   #1
rkaran
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.

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

NAME
mail - send and receive mail

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

INTRODUCTION
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.

TIA.
 
Old 12-19-2002, 11:54 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 01:08 AM.

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