Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail: sendinga simple email

Status
Not open for further replies.

theSeeker03

Programmer
Jan 16, 2004
17
US
Can anyone give me example of sending a short and simple email from UNIX command line using sendmail?

Is sendmail useed like that?
 
And what about man sendmail

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
'man sendmail' does not provide an example. I tried to guess on how to use it but so far got nowhere.
 
...and how 'bout checking the FAQs of this forum?

forum80

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Ok, to send an email from the command line:

mail user@domain.com <enter>
(then below that you just type out the body of your email until your done. Make sure you have a new line, and then hit <control><d>.)

-s at the command line will allow you to enter a subject, put quotes around it, and make sure its before the email address.


Simple 'nuff

___________________________________
[morse]--... ...--[/morse], Eric.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top