You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/24 14:19:26 UTC
svn commit: r1697362 - in
/commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp:
SMTPClient.java SimpleSMTPHeader.java
Author: sebb
Date: Mon Aug 24 12:19:26 2015
New Revision: 1697362
URL: http://svn.apache.org/r1697362
Log:
Javadoc
Modified:
commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTPClient.java
commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SimpleSMTPHeader.java
Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTPClient.java?rev=1697362&r1=1697361&r2=1697362&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTPClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTPClient.java Mon Aug 24 12:19:26 2015
@@ -150,7 +150,7 @@ public class SMTPClient extends SMTP
* <p>
* For example,
* <pre>
- * writer = client.sendMessage();
+ * writer = client.sendMessageData();
* if(writer == null) // failure
* return false;
* header =
@@ -335,7 +335,7 @@ public class SMTPClient extends SMTP
* {@link org.apache.commons.net.smtp.SimpleSMTPHeader}
* class to construct a bare minimum header.
* To construct more complicated headers you should
- * refer to RFC 822. When the Java Mail API is finalized, you will be
+ * refer to RFC 5322. When the Java Mail API is finalized, you will be
* able to use it to compose fully compliant Internet text messages.
* The DotTerminatedMessageWriter takes care of doubling line-leading
* dots and ending the message with a single dot upon closing, so all
@@ -355,6 +355,7 @@ public class SMTPClient extends SMTP
* as an IOException or independently as itself.
* @exception IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply from the server.
+ * @see #sendShortMessageData(String)
***/
public Writer sendMessageData() throws IOException
{
@@ -375,6 +376,7 @@ public class SMTPClient extends SMTP
* its success or failure.
* <p>
* @param message The short email message to send.
+ * This must include the headers and the body, but not the trailing "."
* @return True if successfully completed, false if not.
* @exception SMTPConnectionClosedException
* If the SMTP server prematurely closes the connection as a result
@@ -412,6 +414,7 @@ public class SMTPClient extends SMTP
* @param sender The email address of the sender.
* @param recipient The email address of the recipient.
* @param message The short email message to send.
+ * This must include the headers and the body, but not the trailing "."
* @return True if successfully completed, false if not.
* @exception SMTPConnectionClosedException
* If the SMTP server prematurely closes the connection as a result
@@ -455,6 +458,7 @@ public class SMTPClient extends SMTP
* @param sender The email address of the sender.
* @param recipients An array of recipient email addresses.
* @param message The short email message to send.
+ * This must include the headers and the body, but not the trailing "."
* @return True if successfully completed, false if not.
* @exception SMTPConnectionClosedException
* If the SMTP server prematurely closes the connection as a result
Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SimpleSMTPHeader.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SimpleSMTPHeader.java?rev=1697362&r1=1697361&r2=1697362&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SimpleSMTPHeader.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SimpleSMTPHeader.java Mon Aug 24 12:19:26 2015
@@ -20,7 +20,7 @@ package org.apache.commons.net.smtp;
/***
* This class is used to construct a bare minimum
* acceptable header for an email message. To construct more
- * complicated headers you should refer to RFC 822. When the
+ * complicated headers you should refer to RFC 5322. When the
* Java Mail API is finalized, you will be
* able to use it to compose fully compliant Internet text messages.
* <p>