You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return email address of the current user, used by the InternetAddress methodgetLocalAddress.
mail.mime.address.strict
boolean
The MimeMessage class uses the InternetAddress method parseHeader to parse headers in messages. This property controls the strict flag passed to theparseHeader method. The default is true.
mail.host
String
The default host name of the mail server for both Stores and Transports. Used if the
mail.protocol.host
property isn't set.
mail.store.protocol
String
Specifies the default message access protocol. The Session methodgetStore() returns a Store object that implements this protocol. By default the first Store provider in the configuration files is returned.
mail.transport.protocol
String
Specifies the default message transport protocol. The Session methodgetTransport() returns a Transport object that implements this protocol. By default the first Transport provider in the configuration files is returned.
mail.user
String
The default user name to use when connecting to the mail server. Used if the
mail.protocol.user
property isn't set.
mail.protocol.class
String
Specifies the fully qualified class name of the provider for the specified protocol. Used in cases where more than one provider for a given protocol exists; this property can be used to specify which provider to use by default. The provider must still be listed in a configuration file.
mail.protocol.host
String
The host name of the mail server for the specified protocol. Overrides the mail.host property.
mail.protocol.port
int
The port number of the mail server for the specified protocol. If not specified the protocol's default port number is used.
mail.protocol.user
String
The user name to use when connecting to mail servers using the specified protocol. Overrides themail.user property.
SMTP(Simple Mail Transfer Protocol)即简单邮件传输协议,它是一组用于由源地址到目的地址传送邮件的规则,由它来控制信件的中转方式,SMTP协议属于TCP/IP协议簇,它帮助每台计算机在发送或中转信件时找到下一个目的地,通过SMTP协议所指定的服务器,就可以把E-mail寄到收信人的服务器上了,整个过程只要几分钟,SMTP服务器则是遵循SMTP协议的发送邮件服务器,用来发送或中转发出的电子邮件,其默认端口号为25
POP3:全名为"Post Office Protocol - Version 3"即"邮局协议版本3",是TCP/IP协议族中的一员,由RFC1939定义,本协议主要用于支持使用客户端远程管理在服务器上的电子邮件,提供了SSL加密的POP3协议被称为POP3S,其默认端口号为110