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

Returns:string
setHostName($hostName)

protected

Parameters:
  • $hostNamestring
getSmtpPort()

protected

Returns:string
setSmtpPort($smtpPort)

protected

Parameters:
  • $smtpPortstring
getSslSmtpPort()

protected

Returns:string
setSslSmtpPort($sslSmtpPort)

protected

Parameters:
  • $sslSmtpPortstring
isSendPartial()

protected

Returns:boolean
setSendPartial($sendPartial)

protected

Parameters:
  • $sendPartialboolean
getSocketTimeout()

protected

Returns:int
setSocketTimeout($socketTimeout)

protected

Parameters:
  • $socketTimeoutint
getSocketConnectionTimeout()

protected

Returns:int
setSocketConnectionTimeout($socketConnectionTimeout)

protected

Parameters:
  • $socketConnectionTimeoutint
isSslOnConnect()

protected

Returns:boolean
setSslOnConnect($sslOnConnect)

protected

Parameters:
  • $sslOnConnectboolean
isSslCheckServerIdentity()

protected

Returns:boolean
setSslCheckServerIdentity($sslCheckServerIdentity)

protected

Parameters:
  • $sslCheckServerIdentityboolean
setAuthentication($login, $password)

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

Parameters:
  • $loginstring
  • $passwordstring
clearAuthentication()