[621] in java-interest

home help back first fref pref prev next nref lref last post

Re: e-mail libraries

daemon@ATHENA.MIT.EDU (Jonathan Payne)
Sat Jul 8 19:20:28 1995

Date: Fri, 7 Jul 1995 22:32:09 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: java-interest@java.Eng.Sun.COM

> Date: Thu, 06 Jul 1995 13:45:58 -0400
> From: Yitzie Mandelbaum <yitzi@tsar.poly.edu>
> Sender: owner-java-interest@java.sun.com
>
> 	Are there any libraries that allow you to send e-mail from an applet ?
> I have used the telnet library that allows you to send and recieve 
> information over telnet, and was wondering if there were any comparable
> e-mail libraries (send-only, of course). 
> 	I would greatly appreciate an answer on this, as it is an integral
> part of a project that I'm working on.

Here's a code fragment from one of my applets:

	    smtp = new SmtpClient();
	    smtp.to(address.value);
	    String from = System.getenv("USER");
	    if (from == null)
		from = "VerifierApplet";
	    smtp.from(from);
	    PrintStream out = smtp.startMessage();
	    out.println("From: " + from);
	    out.println("Subject: verify results for " + baseUrl);
	    out.println("To: " + address.value);
	    out.println("");
	    out.print(output.substring(0, output.length()));
	    out.close();

This works very well.

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post