Hi,
Well over a year ago I also got some email classes from somebody on this mailing list.
I realized later that
they had originally come from Gamelan. I gussied them up with all sorts of
programmatic 'set', 'get', 'add'
methods, for 'to', 'cc', 'bcc', 'subject', 'text', etc., also logging that could go
either to ND log or to
system.out.
I'd be happy to send these along, but now as of jdk 1.1 there are generic java email
classes that do the same
stuff. I would try using these before adopting or adapting homegrown email classes at
this point, yours, mine,
or anybody else's.
-- Curt Springer, Team ND
Beaudreau, Marilyn a �crit:
> A year or more ago I obtained the following code from the ND technotes to
> aid in the sending of email from within an ND project. I'm using this code
> now in a case where I know who the sender/receiver are (so they're hardcoded
> in the .ini file). Now I have a need to programmatically supply the email
> address to which the message should be sent to.
>
> In the code I obtained from the technotes it stated that to set the params
> programmatically the included constructor needed to be updated.
>
> I've attached the java code below. Has anyone updated this to meet the
> needs of sending mail wo hardcoding the smpt info?
>
> <<SMTPMailer.java>> <<SMTPMailer.ini>>
> thanks,
> - Marilyn
>
> > Marilyn Beaudreau
> > COMPAQ Computer Corporation
> >
> >
> >
> >
>
> ------------------------------------------------------------------------
>
> Name: SMTPMailer.java
> SMTPMailer.java Type: Visual Cafe File
>(application/x-unknown-content-type-VisualCafeFile.Document)
> Encoding: quoted-printable
>
> SMTPMailer.ini Name: SMTPMailer.ini
> Type: Configuration Settings
>(application/x-unknown-content-type-inifile)
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]