Sending mail from an application (Pre-v2 JDK, Redhat 6.0)

1999-07-22 Thread agetchel

Hey all,
How would one go about sending e-mail from an application?  I have
tried doing it via the Runtime.exec() method and running a long drawn out
'mail' command, but the system executes it too fast and it ends up getting
garbled in the process.  Any ideas?

Thanks,
Abe

Abe L. Getchell - Systems Engineer
System Support Services
Kentucky Department of Education
Voice   502-564-2020x225
E-mail  [EMAIL PROTECTED]
Web http://www.kde.state.ky.us/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Revisited: Sending mail from an application (Pre-v2 JDK, Redhat 6.0)

1999-07-23 Thread agetchel

Hey guys,
Thanks for all of your help!  I can now send e-mail from Java
apps... almost. =)  I download, installed, and used the JavaMail extensions,
but am now having another problem.  The machine that this app is running on
does not have sendmail on it and by default it is trying to connect to the
localhost to send the e-mail.  What is the property I need to set in the
Properties object to point this too another server?  I have tried setting
'mailhost' and 'host', both which I have found in other samples, but they
don't seem to work.  Any idea's?

Thanks,
Abe

Abe L. Getchell - Systems Engineer
System Support Services
Kentucky Department of Education
Voice   502-564-2020x225
E-mail  [EMAIL PROTECTED]
Web http://www.kde.state.ky.us/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: Revisited: Sending mail from an application (Pre-v2 JDK, Redhat 6 .0)

1999-07-27 Thread agetchel

"mail.host" works like a charm.  Thanks for the heads up on the DNS
resolution issue!

Thanks,
Abe

Abe L. Getchell - Systems Engineer
System Support Services
Kentucky Department of Education
Voice   502-564-2020x225
E-mail  [EMAIL PROTECTED]
Web http://www.kde.state.ky.us/



-Original Message-
From: Brian Wellington [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 23, 1999 8:10 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Revisited: Sending mail from an application (Pre-v2 JDK,
Redhat 6 .0)


On Fri, 23 Jul 1999 [EMAIL PROTECTED] wrote:

> Hey guys,
>   Thanks for all of your help!  I can now send e-mail from Java
> apps... almost. =)  I download, installed, and used the JavaMail
extensions,
> but am now having another problem.  The machine that this app is running
on
> does not have sendmail on it and by default it is trying to connect to the
> localhost to send the e-mail.  What is the property I need to set in the
> Properties object to point this too another server?  I have tried setting
> 'mailhost' and 'host', both which I have found in other samples, but they
> don't seem to work.  Any idea's?

Have you tried mail.host?  I've never used SmtpClient, but the source
appears to use that.

On a related note, it looks like the URL handler for "mailto:" does the
wrong DNS lookup for the remote host - it does an address (A) lookup
instead of a mail exchanger (MX) lookup.  So, if you use
mailto:[EMAIL PROTECTED], and the machine called host.domain doesn't exist,
SmtpClient will fail.  More than likely, there's an MX record from
host.domain to something like mail.host.domain, which would work.  No easy
way around this, unfortunately.

Brian


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Parent threads...

1999-07-28 Thread agetchel

Hey all,
If a parent thread is set to sleep, do any child threads sleep as
well?

Thanks,
Abe

Abe L. Getchell - Systems Engineer
System Support Services
Kentucky Department of Education
Voice   502-564-2020x225
E-mail  [EMAIL PROTECTED]
Web http://www.kde.state.ky.us/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]