There is a really nice example program included with the JavaMail download
from the sun site that shows sending a simple mail message from a command
line program.  You should be able to cut and paste from this to include it
into your JavaBean.

Cheers

-----Original Message-----
From: Mark Phelps [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 11:27 AM
To: JRun-Talk
Subject: RE: send e-mail from a javaBean


Sending an email message is very simple using the JavaMail interface.  If
anything goes wrong during the communication with your mail server, it will
be reflected in an exception.  I don't know of any way to know when the
message is successfully forwarded by the mail server.  During testing you
can send messages to yourself to verify that your code is working.

If you need to see code that sends a message, let me know.  I assume that
you are just asking about confirmation of the send.

-----Original Message-----
From: Giang Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 6:46 PM
To: JRun-Talk
Subject: send e-mail from a javaBean



Hi, list

I want to send e-mail from a javaBean for experiment. How can I know that
the e-mail had been sent?
Because I have only ONE computer so can this work be done? If it can be,
please tell me how to do so or where to find documentations to read more.
Thank you very much.
I look forward for your reply.
Giang Nguyen.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to