Package net.sf.colossus.webserver
Class ColossusMail
java.lang.Object
net.sf.colossus.webserver.ColossusMail
- All Implemented Interfaces:
IColossusMail
Encapsulates the way how the web server sends mail in some situations,
so far only for registration procedure.
- Author:
- Clemens Katzer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final String
private final String
private final String
private static final Logger
private final String
private final File
private final boolean
private final String
private final boolean
Whether or not to really send a mail.private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendConfirmationMail
(String username, String email, String confCode) Request from the ColossusMail object to send the mail (with the confirmationCode) to the given email address, in order to complete the registration of user username
-
Field Details
-
LOGGER
-
mailServer
-
fromAddress
-
fromName
-
thisServer
-
contactMail
-
contactWWW
-
reallyMail
private final boolean reallyMailWhether or not to really send a mail. During development on PC I set this in the cf file to false, because I do not really have a mail server process running. -
mailToFileName
-
mailToFileFile
-
mailToFileFlag
private final boolean mailToFileFlag
-
-
Constructor Details
-
ColossusMail
-
-
Method Details
-
sendConfirmationMail
Description copied from interface:IColossusMail
Request from the ColossusMail object to send the mail (with the confirmationCode) to the given email address, in order to complete the registration of user username- Specified by:
sendConfirmationMail
in interfaceIColossusMail
- Parameters:
username
- Name of user of which registration is ongoingemail
- email address to where to send the mailconfCode
- the code user has to provide in the gui field in order to complete the registration- Returns:
- The reason why it failed, or null if all is fine.
-