Hi
I tried it the below way
sendmail Sherlock@xyz.com<Mail.txt
And the mail.txt contains
date : ...
To :
x@y.com
Subject : ..
from :
Z@G.com
body of the message
From command line....it is working fine...
But i am having problem executing it from the java program..
String cmd="/usr/sbin/sendmail
xyz@SS.com <Mail.txt";
try {
Runtime.getRuntime().exec(cmd);
} catch (IOException ioe) {
System.out.println(" exception while sending the mails ");
ioe.printStackTrace();
}
Regards