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.
Everything you need to send emails from WordPress
Replace wp_mail() function
WooCommerce compatible
Contact Form 7 support
Plugin-based configuration
No coding required
Get up and running in minutes with this 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);
}Follow these steps to integrate Unosend with WordPress
Go to WordPress Settings or install WP Mail SMTP plugin
Configure SMTP with smtp.unosend.co on port 587
Use "apikey" as username and your API key as password
Send a test email to verify the configuration
All WordPress emails now route through Unosend
Fix WordPress email deliverability issues
Works with all WordPress plugins
No coding required with SMTP plugin
WooCommerce order emails improved
More platform integrations you might like
Start sending emails from WordPress in under 5 minutes. Free tier includes 5,000 emails/month.