The Trongate Email Module

The Trongate Email module sends HTML and plain text emails via SMTP. It handles message construction, header encoding, and SMTP communication, automatically generating plain text alternatives from HTML content.

Configuration is stored in config/trongate_email.php with SMTP host, port, credentials, and security settings.

__construct()

Constructor for the Trongate Email module. Initialises the module and blocks direct URL access.

send()

Sends an email via SMTP using the credentials configured in config/trongate_email.php. Supports both HTML and plain text formats. If no plain text version is provided, one is automatically generated from the HTML content.