Results 1 to 5 of 5
Thread: [SOLVED] Sending Email via UNIX
- 03-19-2009, 10:56 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 45
- Rep Power
- 0
[SOLVED] Sending Email via UNIX
I have a Java application that I need to send out an email report after it finishes. The application is running on a unix machine. Normally with Perl, I just open a file descriptor like
Then I can write to it and it delivers the email. But I'm not sure how to accomplish this with Java. I am not able to install any Java add-ons.Java Code:open(FH, "|mailx -s 'Some Subject' recipient");
- 03-19-2009, 11:48 PM #2
Member
- Join Date
- Mar 2009
- Posts
- 2
- Rep Power
- 0
try javamail APIs
- 03-20-2009, 01:36 AM #3
Member
- Join Date
- Oct 2008
- Posts
- 45
- Rep Power
- 0
Is that an add-on? I've got Java 5.0 jre to work with.
- 03-20-2009, 05:53 AM #4
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
If you don't want to mess with javamail, you can simply spawn a process to do whatever you want using Runtime.exec(). You could use dtmail or whatever for that purpose.
- 03-24-2009, 11:31 PM #5
Member
- Join Date
- Oct 2008
- Posts
- 45
- Rep Power
- 0
Similar Threads
-
Need help sending an email
By isshino in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-19-2009, 08:35 PM -
sending a simple email message via SMTP
By chahhchahh in forum NetworkingReplies: 5Last Post: 03-08-2009, 06:58 PM -
Communicate between Windows and UNIX
By nwboy74 in forum NetworkingReplies: 10Last Post: 11-04-2008, 08:53 PM -
send email using apache commons email
By jnamendi in forum JavaServer Faces (JSF)Replies: 0Last Post: 10-14-2008, 05:55 PM -
sending email without SMTP?
By java_srinivasan in forum Advanced JavaReplies: 1Last Post: 07-23-2008, 03:45 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks