class MailConfig extends AnyRef
represents the configuration of a mail service with mail server hostname, port, security options, login options and login/password
- Alphabetic
- By Inheritance
- MailConfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new MailConfig(_asJava: ext.mail.MailConfig)
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
-  def asJava: ext.mail.MailConfig
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
-  def getAuthMethods: String
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-  def getHostname: String
-  def getKeyStore: String
-  def getKeyStorePassword: String
-  def getLogin: LoginOption
-  def getMaxPoolSize: Int
-  def getOwnHostname: String
-  def getPassword: String
-  def getPort: Int
-  def getStarttls: StartTLSOptions
-  def getUsername: String
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-  def isAllowRcptErrors: Boolean
-  def isDisableEsmtp: Boolean
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
-  def isKeepAlive: Boolean
-  def isSsl: Boolean
-  def isTrustAll: Boolean
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setAllowRcptErrors(value: Boolean): MailConfig
      
      
      set if sending allows rcpt errors set if sending allows rcpt errors if true, the mail will be sent to the recipients that the server accepted, if any 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setAuthMethods(value: String): MailConfig
      
      
      set string of allowed auth methods. set string of allowed auth methods. if set only these methods will be used if the server supports them. If null or empty all supported methods may be used 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setDisableEsmtp(value: Boolean): MailConfig
      
      
      set if ESMTP should be tried as first command (EHLO) set if ESMTP should be tried as first command (EHLO) rfc 1869 states that clients should always attempt EHLO as first command to determine if ESMTP is supported, if this returns an error code, HELO is tried to use old SMTP. If there is a server that does not support EHLO and does not give an error code back, the connection should be closed and retried with HELO. We do not do that and rather support turning off ESMTP with a setting. The odds of this actually happening are very small since the client will not connect to arbitrary smtp hosts on the internet. Since the client knows that is connects to a host that doesn't support ESMTP/EHLO in that way, the property has to be set to false. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setHostname(value: String): MailConfig
      
      
      Set the hostname of the smtp server. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setKeepAlive(value: Boolean): MailConfig
      
      
      set if connection pool is enabled default is true set if connection pool is enabled default is true if the connection pooling is disabled, the max number of sockets is enforced nevertheless 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setKeyStore(value: String): MailConfig
      
      
      get the key store filename to be used when opening SMTP connections get the key store filename to be used when opening SMTP connections if not set, an options object will be created based on other settings (ssl and trustAll) 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setKeyStorePassword(value: String): MailConfig
      
      
      get the key store password to be used when opening SMTP connections 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setLogin(value: LoginOption): MailConfig
      
      
      Set the login mode for the connection. Set the login mode for the connection. Either DISABLED, OPTIONAL or REQUIRED 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setMaxPoolSize(value: Int): MailConfig
      
      
      set the max allowed number of open connections to the mail server if not set the default is 10 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setOwnHostname(value: String): MailConfig
      
      
      set the hostname to be used for HELO/EHLO and the Message-ID 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setPassword(value: String): MailConfig
      
      
      Set the password for the login. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setPort(value: Int): MailConfig
      
      
      Set the port of the smtp server. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setSsl(value: Boolean): MailConfig
      
      
      Set the sslOnConnect mode for the connection. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setStarttls(value: StartTLSOptions): MailConfig
      
      
      Set the tls security mode for the connection. Set the tls security mode for the connection. Either NONE, OPTIONAL or REQUIRED 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setTrustAll(value: Boolean): MailConfig
      
      
      set whether to trust all certificates on ssl connect the option is also applied to STARTTLS operation 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setUsername(value: String): MailConfig
      
      
      Set the username for the login. 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )