EmailBackend

php\mail\EmailBackend

Class EmailBackend

Properties


property hostName

string

The host name of the SMTP server.

property smtpPort

string

The listening port of the SMTP server.

property sslSmtpPort

string

The current SSL port used by the SMTP transport.

property sendPartial

bool

Sending partial email.

property socketTimeout

int

The socket I/O timeout value in milliseconds.

property socketConnectionTimeout

int

The socket connection timeout value in milliseconds.

property sslOnConnect

bool

Whether SSL/TLS encryption for the transport is currently enabled (SMTPS/POPS).

property sslCheckServerIdentity

bool

Whether the server identity is checked as specified by RFC 2595.

Methods


getHostName()

protected

Результат:string
setHostName($hostName)

protected

Параметры:
  • $hostNamestring
getSmtpPort()

protected

Результат:string
setSmtpPort($smtpPort)

protected

Параметры:
  • $smtpPortstring
getSslSmtpPort()

protected

Результат:string
setSslSmtpPort($sslSmtpPort)

protected

Параметры:
  • $sslSmtpPortstring
isSendPartial()

protected

Результат:boolean
setSendPartial($sendPartial)

protected

Параметры:
  • $sendPartialboolean
getSocketTimeout()

protected

Результат:int
setSocketTimeout($socketTimeout)

protected

Параметры:
  • $socketTimeoutint
getSocketConnectionTimeout()

protected

Результат:int
setSocketConnectionTimeout($socketConnectionTimeout)

protected

Параметры:
  • $socketConnectionTimeoutint
isSslOnConnect()

protected

Результат:boolean
setSslOnConnect($sslOnConnect)

protected

Параметры:
  • $sslOnConnectboolean
isSslCheckServerIdentity()

protected

Результат:boolean
setSslCheckServerIdentity($sslCheckServerIdentity)

protected

Параметры:
  • $sslCheckServerIdentityboolean
setAuthentication($login, $password)

Sets the userName and password if authentication is needed. If this method is not used, no authentication will be performed.

Параметры:
  • $loginstring
  • $passwordstring
clearAuthentication()