1947. Class

1947.1. Zend\Mail\Transport\SmtpOptions

1947.1.1. Methods

1947.1.1.1. getName

getName()

Return the local client hostname

Return type:string

1947.1.1.2. setName

setName()

Set the local client hostname or IP

Parameters:string
Throws ZendMailExceptionInvalidArgumentException:
 
Return type:SmtpOptions

1947.1.1.3. getConnectionClass

getConnectionClass()

Get connection class

This should be either the class ZendMailProtocolSmtp or a class extending it – typically a class in the ZendMailProtocolSmtpAuth namespace.

Return type:string

1947.1.1.4. setConnectionClass

setConnectionClass()

Set connection class

Parameters:string – the value to be set
Throws ZendMailExceptionInvalidArgumentException:
 
Return type:SmtpOptions

1947.1.1.5. getConnectionConfig

getConnectionConfig()

Get connection configuration array

Return type:array

1947.1.1.6. setConnectionConfig

setConnectionConfig()

Set connection configuration array

Parameters:array
Return type:SmtpOptions

1947.1.1.7. getHost

getHost()

Get the host name

Return type:string

1947.1.1.8. setHost

setHost()

Set the SMTP host

Parameters:string
Return type:SmtpOptions

1947.1.1.9. getPort

getPort()

Get the port the SMTP server runs on

Return type:int

1947.1.1.10. setPort

setPort()

Set the port the SMTP server runs on

Parameters:int
Throws ZendMailExceptionInvalidArgumentException:
 
Return type:SmtpOptions