LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-17-2011, 06:23 AM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
how to sendmail to multiple recipient in command


Dear all,

Through shell script iam sending mail, i want to send mail to multiple recipient,can any one help me how to send mail to multiple recipient.Iam sending mail through the below given in shell script to one recipient.
su - ramkannan <<EOF
mail -s 'Test Mail' ramkannan_88@yahoo.com <<EOF
$(date)

Thanks,
 
Old 07-17-2011, 06:43 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Just list multiple addresses, separated with a space. For example,
Code:
mail -s 'Test Mail' user1@yahoo.com user2@yahoo.com user3@yahoo.com user4@yahoo.com
The 'man mail' command will help you with valid syntax.
 
Old 07-18-2011, 02:32 AM   #3
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
Thank u veru much
 
0 members found this post helpful.
  


Reply



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
[SOLVED] Sendmail: block specific sender to specific recipient - How? thekillerbean Linux - Server 6 07-13-2010 04:13 AM
Sendmail recipient address rewriting question... catalytical Linux - Server 4 01-12-2009 05:40 PM
sendmail multiple recipient problem sunethj Linux - Server 3 09-20-2007 11:55 AM
Error retrieving mail - recipient not found in local recipient tables swilliams2006 Linux - General 1 09-18-2006 02:37 PM
Help with Sendmail filters for outgoing mail by sender/recipient gljoe Linux - Software 18 08-12-2003 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration