Send the DATA command to the SMTP host and return an OutputStream to which the data is to be written. @return the stream to write to @exception MessagingException for failures @since JavaMail 1.4.1
()
| 2159 | * @since JavaMail 1.4.1 |
| 2160 | */ |
| 2161 | protected OutputStream data() throws MessagingException { |
| 2162 | assert Thread.holdsLock(this); |
| 2163 | issueSendCommand("DATA", 354); |
| 2164 | dataStream = new SMTPOutputStream(serverOutput); |
| 2165 | return dataStream; |
| 2166 | } |
| 2167 | |
| 2168 | /** |
| 2169 | * Terminate the sent data. |
no test coverage detected