LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 07-12-2009, 05:20 AM   #1
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
send mail via bash


Hi
I need to send mail in order to report some detail via bash,I have installed postfix as MTA. for send mail via bash script what do you suggest ?
 
Old 07-12-2009, 06:34 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Hello nima0102

You can use the mail or mailx commands from a shell script.

On ubuntu, /usr/bin/mailx is a link to /usr/bin/mail and AFAIK both come in a package called mailx.

Best

Charles
 
Old 07-13-2009, 02:19 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Here's a couple of examples straight from google:
http://rzdesign.free.fr/?p=26
http://forums.devshed.com/scripts-94...ipt-99526.html
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send a mail from bash B-Boy Linux - Server 4 05-22-2009 05:29 AM
Send e-mail by bash script kalimat Programming 11 02-10-2009 06:54 AM
bash script to send a mail attachment aeby Linux - General 6 05-28-2007 07:13 AM
How to send mail using sh/bash in Solaris just_a_kid Linux - Newbie 3 01-26-2007 12:06 PM
bash script to send mail Cruger Programming 1 03-06-2004 09:25 AM


All times are GMT -5. The time now is 10:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration