Class ColossusMail

java.lang.Object
net.sf.colossus.webserver.ColossusMail
All Implemented Interfaces:
IColossusMail

public class ColossusMail extends Object implements IColossusMail
Encapsulates the way how the web server sends mail in some situations, so far only for registration procedure.
Author:
Clemens Katzer
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • mailServer

      private final String mailServer
    • fromAddress

      private final String fromAddress
    • fromName

      private final String fromName
    • thisServer

      private final String thisServer
    • contactMail

      private final String contactMail
    • contactWWW

      private final String contactWWW
    • reallyMail

      private final boolean reallyMail
      Whether 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

      private final String mailToFileName
    • mailToFileFile

      private final File mailToFileFile
    • mailToFileFlag

      private final boolean mailToFileFlag
  • Constructor Details

  • Method Details

    • sendConfirmationMail

      public String sendConfirmationMail(String username, String email, String confCode)
      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 interface IColossusMail
      Parameters:
      username - Name of user of which registration is ongoing
      email - email address to where to send the mail
      confCode - 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.