Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

invoking Sendmail from Java code

843830Sep 12 2002 — edited Sep 12 2002
Hi,

I have a problem calling Linux sendmail from java code. I could able to run the command from the Shell prompt.

the command is
/usr/sbin/sendmail toaddr < filename

i tried to call it from java program by using Runtime.exec(String) and Runtime.exec(String []) but could not get it solved as its not taking the redirectional operators.

its saying that < and file name are invalid address.

any help/suggestions would be greatful


thanx and regards

venu sunil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2002
Added on Sep 12 2002
1 comment
324 views