SMTP connection object
Loads an instance of ZendMailProtocolSmtp and forwards smtp transactions
Set plugin manager for obtaining SMTP protocol connection
Parameters: | ProtocolSmtpPluginManager – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | Smtp |
Get plugin manager for loading SMTP protocol connection
Return type: | ProtocolSmtpPluginManager |
---|
Set the automatic disconnection when destruct
Parameters: | bool – |
---|---|
Return type: | Smtp |
Get the automatic disconnection value
Return type: | bool |
---|
Return an SMTP connection
Parameters: |
|
---|---|
Return type: | ProtocolSmtp |
Sets the connection protocol instance
Parameters: | ProtocolAbstractProtocol – |
---|
Gets the connection protocol instance
Return type: | ProtocolSmtp |
---|
Disconnect the connection protocol instance
Return type: | void |
---|
Send an email via the SMTP connection protocol
The connection via the protocol adapter is made just-in-time to allow a developer to add a custom adapter if required before mail is sent.
Parameters: | Message – |
---|---|
Throws ExceptionRuntimeException: | |
Retrieve email address for envelope FROM
Parameters: | Message – |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | string |
Prepare array of email address recipients
Parameters: | Message – |
---|---|
Return type: | array |
Prepare header string from message
Parameters: | Message – |
---|---|
Return type: | string |
Prepare body string from message
Parameters: | Message – |
---|---|
Return type: | string |
Lazy load the connection, and pass it helo
Return type: | ProtocolSmtp |
---|
Connect the connection, and pass it helo
Return type: | ProtocolSmtp |
---|