Use PHPMailer to send email through the Lettermint SMTP relay from PHP.
This guide covers SMTP integration. For full configuration options and available headers, see the SMTP Introduction.
Installation
Install PHPMailer via Composer:
Code
composer require phpmailer/phpmailer
Basic configuration
Use environment variables for credentials:
Code
<?php// Load from environment or config$smtpHost = 'smtp.lettermint.co';$smtpUsername = 'lettermint';$smtpPassword = getenv('LETTERMINT_PROJECT_TOKEN'); // Your Project API token