dcsimg
Questions sun.net.smtp.SmtpClient
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   t_t
Posted On:   Tuesday, May 27, 2003 12:48 PM

Is it possible to get an acknowledgement back from a send email when using the SmtpClient to find out whether the mail was received or if the mail failed? I am using the following code. String from="test@test.edu"; String to= "test@test.edu"; try { SmtpClient client = new SmtpClient(""); client.from(from); client.to(to); PrintStream message = client.startMessage(); message.println("To: " + to); message.println("Subject: A test"); client.closeServer(); } catch (IOException e) { out.println("ERROR SENDING EMAIL:"+e); }    More>>

Is it possible to get an acknowledgement back from a send

email when using the SmtpClient to find out whether the mail

was received or if the mail failed? I am using the following code.

			String from="test@test.edu";
			
String to= "test@test.edu";
try
{
SmtpClient client = new SmtpClient("");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: A test");
client.closeServer();
}
catch (IOException e)
{
out.println("ERROR SENDING EMAIL:"+e);
}
   <<Less

Re: Questions sun.net.smtp.SmtpClient

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, May 28, 2003 06:45 AM

About | Sitemap | Contact