LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-05-2009, 04:30 AM   #1
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Rep: Reputation: 15
sendmail with file subject and sender name


hello to all

how do i send mail using sendmail with subject and sender name and some texst

for example i use :

echo "test" |mail -s "hello" tt@tt.com

its ok and cool but if i want to add the send name as well with subject and some texst in the mail :

echo "test" |mail -s "hello" |mailsend -f tzahia tt@tt.com

any idaes ?


mail -s = subject

mailsend -f tzahia = sender name

echo "test" = mail body message

10xxx
 
Old 01-05-2009, 08:47 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,646

Rep: Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575
Quote:
Originally Posted by Elnegro8 View Post
hello to all

how do i send mail using sendmail with subject and sender name and some texst

for example i use :

echo "test" |mail -s "hello" tt@tt.com

its ok and cool but if i want to add the send name as well with subject and some texst in the mail :

echo "test" |mail -s "hello" |mailsend -f tzahia tt@tt.com

any idaes ?
Check out the man page for mail (or mailx), and sendmail. The 'from' field has a switch so you can specify it on the command line, along with the subject.
 
  


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
Old sendmail with scalix failed for sender domain saavik Linux - Server 0 08-28-2007 04:59 AM
Sendmail - How to only relay if mx resolves for sender. jrbush82 Linux - Software 4 10-21-2005 10:48 AM
sendmail to fake sender? wizardmax Linux - Newbie 1 09-23-2004 03:18 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM
Sendmail Domain of sender address does not exist mantiev Linux - Networking 0 05-08-2001 07:58 AM


All times are GMT -5. The time now is 02:09 PM.

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