Package com.swiftmq.impl.streams.comp.io
Class MailServer
java.lang.Object
com.swiftmq.impl.streams.comp.io.MailServer
Represents a Connection to a Mail Server.
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this MailServer.void
collect
(long interval) Internal use.connect()
Does the actual connect to the mail server.Disconnects from the mail server.email()
Returns a new Email facade to send a mail.Sets the password.port
(int port) Sets the port (default 25 = SMTP)Sets the user name.
-
Constructor Details
-
MailServer
Internal use.
-
-
Method Details
-
port
Sets the port (default 25 = SMTP)- Parameters:
port
- Port- Returns:
- MailServer
-
username
Sets the user name.- Parameters:
username
- User Name- Returns:
- MailServer
-
password
Sets the password.- Parameters:
password
- Password- Returns:
- MailServer
-
connect
Does the actual connect to the mail server.- Returns:
- MailServer
- Throws:
Exception
-
disconnect
Disconnects from the mail server.- Returns:
- MailServer
-
email
Returns a new Email facade to send a mail.- Returns:
- Throws:
Exception
-
collect
public void collect(long interval) Internal use. -
close
public void close()Closes this MailServer.
-