LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-12-2010, 06:25 AM   #1
ashraflinux1@gmail.com
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Rep: Reputation: 15
Sendmail problem


Hi guys
i have a fedora 11 os in which sendmail service is running
i am able to restart the senmail service successfully
i have not done any configuration in sendmail conf file

i am trying to send mail from command line from fedora but not working

guys can u help me
how to send mail from command line ?
i have root access so permission is not a issue at all
i have write some code so i want send mail from system command line
can u guys assist
and also tell me how to send mail from command line

MOHAMMED ASHRAF
MOB: 9870161983
 
Old 01-12-2010, 06:45 AM   #2
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Rep: Reputation: 16
Well Ashraf, this would be an easy task.
sendmail -t you@mail.com <ENTER>
this will wait for ur input, as u finish simply press ^D and it'll do the job for u.
 
Old 01-12-2010, 06:52 AM   #3
Dave_Devnull
Member
 
Registered: May 2009
Posts: 142

Rep: Reputation: 24
To use sendmail from command line:

Quote:
sendmail -t [enter]
To: <to@address> [enter]
From: <from@address> [enter]
Subject: your subject [enter]
[enter]
This is a test[enter]
.[enter]
The '.' sends the message. You can, of course, add in other headers etc.

(or use the method sci3ntist has shown above)

Last edited by Dave_Devnull; 01-12-2010 at 06:53 AM.
 
  


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
sendmail.cf problem dody1313 Solaris / OpenSolaris 2 02-09-2009 10:27 AM
sendmail.mc and sendmail-cf problem. ChrisScott Linux - Software 1 11-26-2006 01:30 PM
Sendmail Problem mahesha4u Linux - Enterprise 3 10-31-2006 05:28 AM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM

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

All times are GMT -5. The time now is 05:42 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