com.aspose.email

com.aspose.email

Class MailAddress

All Implemented Interfaces:
IMailAddress
public class MailAddress
extends Object
implements IMailAddress

Represents the address of a message.

Constructor Summary
MailAddress(String address)
Initializes a new instance of the MailAddress class.
MailAddress(String address, booleanignoreSmtpCheck)
Initializes a new instance of the MailAddress class.
MailAddress(String address, String displayName)
Initializes a new instance of the MailAddress class.
MailAddress(String address, String displayName, booleanignoreSmtpCheck)
Initializes a new instance of the MailAddress class.
MailAddress(String address, String displayName, Charset displayNameEncoding)
MailAddress(String address, String displayName, Charset displayNameEncoding, booleanignoreSmtpCheck)
 
Method Summary
void
add(MailAddress address)
Deprecated. 
void
add(String address)
Deprecated. 
boolean
equals(Object value)
get_Item(inti)
getAddress()
Gets or sets the e-mail address.
int
getDisplayName()
Gets or sets a display name.
getHost()
Gets the host portion of the address.
getUser()
Gets the username.
int
void
void
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • MailAddress

        public MailAddress(String address,
                           boolean ignoreSmtpCheck)

        Initializes a new instance of the MailAddress class.

        Parameters:
        address - The mail address.
        ignoreSmtpCheck - if set to true then SMTP check will be omitted.
      • MailAddress

        public MailAddress(String address,
                           String displayName,
                           boolean ignoreSmtpCheck)

        Initializes a new instance of the MailAddress class.

        Parameters:
        address - The mail address.
        displayName - The display name.
        ignoreSmtpCheck - if set to true then SMTP check will be omitted.
      • MailAddress

        public MailAddress(String address,
                           String displayName,
                           Charset displayNameEncoding)
      • MailAddress

        public MailAddress(String address,
                           String displayName,
                           Charset displayNameEncoding,
                           boolean ignoreSmtpCheck)
      • MailAddress

        public MailAddress(String address)

        Initializes a new instance of the MailAddress class.

        Parameters:
        address - The mail address.
      • MailAddress

        public MailAddress(String address,
                           String displayName)

        Initializes a new instance of the MailAddress class.

        Parameters:
        address - The mail address.
        displayName - The display name.