Reference documentation and code samples for the Google Cloud Chronicle Client class Smtp.
SMTP info. See RFC 2821.
Generated from protobuf message google.backstory.Smtp
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ helo |
string
The client's 'HELO'/'EHLO' string. |
↳ mail_from |
string
The client's 'MAIL FROM' string. |
↳ rcpt_to |
string[]
The client's 'RCPT TO' string(s). |
↳ server_response |
string[]
The server's response(s) to the client. |
↳ message_path |
string
The message's path (extracted from the headers). |
↳ is_webmail |
bool
If the message was sent via a webmail client. |
↳ is_tls |
bool
If the connection switched to TLS. |
getHelo
The client's 'HELO'/'EHLO' string.
| Returns | |
|---|---|
| Type | Description |
string |
|
setHelo
The client's 'HELO'/'EHLO' string.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMailFrom
The client's 'MAIL FROM' string.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMailFrom
The client's 'MAIL FROM' string.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRcptTo
The client's 'RCPT TO' string(s).
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setRcptTo
The client's 'RCPT TO' string(s).
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServerResponse
The server's response(s) to the client.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setServerResponse
The server's response(s) to the client.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMessagePath
The message's path (extracted from the headers).
| Returns | |
|---|---|
| Type | Description |
string |
|
setMessagePath
The message's path (extracted from the headers).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIsWebmail
If the message was sent via a webmail client.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIsWebmail
If the message was sent via a webmail client.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIsTls
If the connection switched to TLS.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIsTls
If the connection switched to TLS.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|