SMTP
Introduction
The SMTP Extension includes the SMTPMailHandler
, and provides the ability for applications to send email via standard SMTP.
Documentation References:
API References:
Requirements
No external depencies
Configuration
Application Configuration Settings
This extension supports the following configuration settings under a [mail.smtp]
configuration section:
Setting | Description |
to | Default recipient address (list, or comma separated depending on the config handler in use). |
from_addr | Default sender address |
cc | Default carbon-copy addresses (list, or comma separated depending on the config handler in use) |
bcc | Default blind-carbon-copy addresses (list, or comma separated depending on the config handler in use) |
subject | Default subject line |
subject_prefix | Additional string to prepend to the subject line of all messages |
host | The SMTP host server address. Default: |
port | The SMTP host server port. Default: |
timeout | The timeout in seconds before terminating a connection. Default: 30 |
ssl | Whether to initiate SSL or not. Default: |
tls | Whether to use TLS or not (requires SSL). Default: |
auth | Whether or not to initiate SMTP authentication. Default: |
username | SMTP authentication username. Default: |
password | SMTP authentication password. Default: |
Usage
Last updated