LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-15-2004, 12:27 PM   #1
naijaguy
Member
 
Registered: Aug 2004
Posts: 88

Rep: Reputation: 15
call mail program like blat from java to send attachments


In Java on Windows, I would exec a process to call the free Windows blat program (command line mail utility). I know there are a million mail programs in *nix...sendmail is one, mailto is another...but I don't know much about these.

The main thing is that this is ALL I need to be able to do. From Java, I want to reuse my basic code to call a command line utility to send an email attachment. I do have simple Java code that opens a connection to a URL that happens to be an email address, and with that I can send myself emails, but in this particular case I need to be able to attach files, because some of the text happens to be delimited, and as you know, it gets kind of messed up in emails, so I need to attach the log file to the email to preserve everything properly.

I would rather not have to learn to set up a bigtime email program that involves some system administration and all that--otherwise, I'd have set up JavaMail by now. Isn't there something simple in Linux that can allow me to do this? I paged through the man pages on mail and sendmail, but they don't seem to be able to do attachments. I'm also wondering if they have to be used interactively.

Thanks...I've been using Google, but no luck so far, especially with all the stuff out there on sendmail that's way overkill for my needs!
 
Old 05-04-2008, 09:09 PM   #2
billymac00
LQ Newbie
 
Registered: Sep 2006
Location: California Bay Area
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Blat from Java

well, realize orig thread is stale but I have the same need. I can get all I need with Blat incl attachment via a command line. Just need to know how to associate that "command line" to the button action ...I am very green ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Evolution 1,4.6 does not show the attachments i want so send jamaica-man Linux - Software 2 11-08-2006 10:42 AM
Cannot send attachments Likosin Linux - Software 3 04-11-2005 07:28 PM
Java Mail fails to send a HTML mail eantoranz Programming 1 11-10-2004 01:47 PM
I am trying to send an program generated e-mail! rutman Linux - General 0 06-15-2004 01:04 PM
What is the best way to call a Java program from a C prog in Linux? renato soffiatt Programming 1 10-17-2003 07:06 AM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration