This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes sendmail command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "sendmail command" Watch "sendmail command" New topic
Author

sendmail command

Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
Can anyone give me simple example of using sendmail command..just plain text email...Do i need to do any settings for that....


SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

echo "Can you hear me now?" | mail -s "Test message" friend@wherever.com

The only tricky part is that the body comes from stdin (hence the echo to pipe).


Customer surveys are for companies who didn't pay proper attention to begin with.
Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
Thanks Tim...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sendmail command
 
Similar Threads
Runtime.getRuntime().exec() doubt
gettting form name as a parameter
Suse Linux Disabling sendmail
wsadmin V6 sendmail
Sending Mail..Authenticate