SmtpMail¶
-
public class
SmtpMail
¶ A class that handles sending SMTP messages.
Author: Administrator
Constructors¶
SmtpMail¶
-
public
SmtpMail
(boolean useSSL)¶ Create a new SmtpMail instance.
Parameters: - useSSL –
Throws: - SmtpMailException –
SmtpMail¶
-
public
SmtpMail
(SmtpMailProperties sprops, boolean useSSL)¶ Create a new SmtpMail instance with the given SmtpMailProperties object.
Parameters: - sprops –
- useSSL –
Throws: - SmtpMailException –
Methods¶
isConnected¶
-
public boolean
isConnected
()¶ Checks whether the transport associated with this instance is connected.
Returns: boolean
send¶
send¶
transportClose¶
-
public void
transportClose
()¶ Attempts to close the transport connection. If the transport is not connected, will not do anything.
Throws: