Re: Servlet e-mails

Hello,

To send an email from a servlet I have been using the class:
sun.net.smtp.SmtpClient

This provides methods for specifying email address to send to, a
printstream for the actual message, various headers (like 'subject'
etc). It works but it seems to be unsupported by Sun (it hasnt changed
since version 1.0).

If you are trying to send parameters from a html form, then these can be
formatted as part of the printstream. I hope this helps.

Jon

darrochi@dcs.gla.ac.uk wrote:
> 
> Hi
> 
> This is not strictly a Jigsaw question
> 
> I was wondering what the best way to process an HTML form is so the contents can
> be sent to a specified address.
> 
> currently I use some java script.  Is this best?
> is it better to use servlets?  does jigsaw support sending mail?
> 
> Help would be appreciated
> 
> Iain

Received on Monday, 15 November 1999 12:59:18 UTC