W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1999

RE: Servlet e-mails

From: Bi, Xiaolian <xbi@tri.sbc.com>
Date: Mon, 15 Nov 1999 13:16:58 -0500 (EST)
Message-ID: <6C5FB3C08FCBD1118EE600805FEA9CC201E1A5E1@trimail.tri.sbc.com>
To: "'Jon Bedworth'" <jon.bedworth@sentineluk.com>, www-jigsaw@w3.org, darrochi@dcs.gla.ac.uk

Sun has an API spec JavaMail that can be used to send email from Java
program. JavaMail can downloaded from Sun web site.

Xiaolian
		-----Original Message-----
		From:	Jon Bedworth [mailto:jon.bedworth@sentineluk.com]
		Sent:	Monday, November 15, 1999 11:39 AM
		To:	www-jigsaw@w3.org; darrochi@dcs.gla.ac.uk
		Subject:	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 13:23:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:33 GMT