Platform Integration

WordPress + Unosend

Send transactional emails from WordPress using Unosend. Replace wp_mail() with the Unosend API for better deliverability. Works with WooCommerce, Contact Form 7, and all major plugins.

Features

Everything you need to send emails from WordPress

Replace wp_mail() function

WooCommerce compatible

Contact Form 7 support

Plugin-based configuration

No coding required

Quick Start

Get up and running in minutes with this code example

Code Example
// functions.php — Override wp_mail with Unosend
add_action('phpmailer_init', function($phpmailer) {
    $phpmailer->isSMTP();
    $phpmailer->Host = 'smtp.unosend.co';
    $phpmailer->SMTPAuth = true;
    $phpmailer->Username = 'apikey';
    $phpmailer->Password = UNOSEND_API_KEY;
    $phpmailer->SMTPSecure = 'tls';
    $phpmailer->Port = 587;
    $phpmailer->From = 'hello@yourdomain.com';
    $phpmailer->FromName = get_bloginfo('name');
});

// Or use the REST API directly
function unosend_send_email($to, $subject, $html) {
    $response = wp_remote_post('https://api.unosend.co/v1/emails', [
        'headers' => [
            'Authorization' => 'Bearer ' . UNOSEND_API_KEY,
            'Content-Type' => 'application/json',
        ],
        'body' => json_encode([
            'from' => 'hello@yourdomain.com',
            'to' => $to,
            'subject' => $subject,
            'html' => $html,
        ]),
    ]);
    return json_decode(wp_remote_retrieve_body($response), true);
}

Setup Guide

Follow these steps to integrate Unosend with WordPress

1

Go to WordPress Settings or install WP Mail SMTP plugin

2

Configure SMTP with smtp.unosend.co on port 587

3

Use "apikey" as username and your API key as password

4

Send a test email to verify the configuration

5

All WordPress emails now route through Unosend

Why Use Unosend with WordPress?

Fix WordPress email deliverability issues

Works with all WordPress plugins

No coding required with SMTP plugin

WooCommerce order emails improved

Ready to integrate?

Start sending emails from WordPress in under 5 minutes. Free tier includes 5,000 emails/month.