Ahasend Email Sender
Sends WordPress emails using the Ahasend API and logs the sent emails and their status. Logs are cleared monthly.
by Chris Hawes · github.com/ghostfishing/ahasend-wordpress-plugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ghostfishing/ahasend-wordpress-plugin/archive/refs/heads/main.zipA WordPress plugin that overrides wp_mail() to send all outgoing email through the Ahasend v2 API, with logging and status tracking.
For WordPress Plugin Directory details, see readme.txt.
Installation
- Download or clone this repository.
- Copy the folder into
wp-content/plugins/on your WordPress installation. - Activate the plugin from the Plugins page in the WordPress admin.
On activation the plugin creates a database table for email logging. No further setup is needed beyond configuring your settings.
Updating
When updating a manually installed plugin:
- Deactivate the plugin from the Plugins page.
- Replace the plugin folder in
wp-content/plugins/with the new version. - Activate the plugin again.
Reactivating runs the activation hook, which uses dbDelta() to apply any database schema changes (e.g. new columns) without losing existing data.
Configuration
Go to AhaSend Log > Settings in the WordPress admin and fill in:
| Setting | Description |
|---|---|
| API Key | Your AhaSend API key (used as a Bearer token). |
| Account ID | Your AhaSend account ID (used in the API endpoint URL). |
| From Email | The sender email address for all outgoing mail. |
| From Name | The sender display name. |
| Reply-To Email | Default Reply-To address. Leave blank to disable. |
| Reply-To Name | Display name for the Reply-To address. |
| Force Reply-To | When checked, always uses the Reply-To from settings, ignoring any Reply-To headers set by WordPress or other plugins. |
Usage
Once configured, all WordPress emails sent via wp_mail() are automatically routed through the AhaSend API. No code changes are needed in your theme or other plugins.
Test Email
Go to AhaSend Log > Send Test Email to verify your configuration by sending a test message.
Logging
All sent emails are logged with their recipient, subject, status, message ID, and raw API response. View the log at AhaSend Log in the admin menu.
Logs are automatically cleared every 30 days.