Package net.sf.colossus.webserver
Class SmtpSimple
java.lang.Object
net.sf.colossus.webserver.SmtpSimple
Sending a simple (text-only) mail by submitting it to the SMTP
server at port 25.
Basically copied 1:1 (only changed formatting and indentation) from:
http://www.torsten-horn.de/techdocs/java-smtp.htm
- Author:
- Clemens Katzer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
os
-
is
-
sRt
-
-
Constructor Details
-
SmtpSimple
public SmtpSimple()
-
-
Method Details
-
main
-
sendEmail
public final String sendEmail(String sSmtpServer, String sFromAdr, String sFromRealName, String sToAdr, String sToRealName, String sSubject, String sText) throws IOException, Exception - Throws:
IOException
Exception
-
writeRead
private final void writeRead(boolean bReadAnswer, String sAnswerMustStartWith, String sWrite) throws IOException, Exception - Throws:
IOException
Exception
-