Skip to content
Ask AI

Email connection and integration guide (cmercury and AhaSend)

Depending on your needs, there are two ways to connect your website or system to Najva’s email service: a no-code connection through the plugins and integrations of the marketing panel, or a programmatic connection for sending transactional email over SMTP or API.

Connecting through the cmercury panel (no code)

Section titled “Connecting through the cmercury panel (no code)”

The email panel has several ready-made integrations that connect your website or store to your contact lists and email campaigns without any coding. They include the WordPress and WooCommerce plugin and Zapier (which connects to thousands of other apps).

This plugin provides the following features:

  • Automatic contact collection from your website forms (compatible with Contact Form 7, WPForms, and Gravity Forms) or with the ready-made [cmercury_form] shortcode
  • WooCommerce customer sync (name, email, city and province, number and amount of orders, last purchased product, and more) to build targeted campaigns based on purchase behavior
  • Routing WordPress/WooCommerce system emails (order confirmation, password recovery, admin notifications, and so on) through cmercury’s transactional sending engine to improve delivery rate

Installation and setup:

  1. Download the plugin file from cmercury, then go to WordPress dashboard > Plugins > Add New Plugin > Upload Plugin to upload, install, and activate it.
  2. To authenticate, go to cmercury > Authentication in the WordPress dashboard, confirm your data protection responsibility, and enter and save your cmercury account’s API Key (from Account Settings > API Key in the cmercury panel).
  3. To enable contact collection from forms, go to the Forms Integration tab and set the destination list ID (Default Audience List ID).
  4. To route WordPress/WooCommerce transactional emails (optional), first create a transactional campaign in the cmercury panel under Campaigns > Create Campaign > Automations > Transactional and copy its Trigger ID. Then, in the plugin’s Email Delivery tab, enter the Trigger ID, sender name, sender email address (it must be on the verified domain), and reply address.
  5. To sync WooCommerce customers (optional), go to the WooCommerce Sync tab and set the destination list ID (if you leave it empty, a list named Store_Customers is created automatically). Syncing runs continuously in the background. For a one-time full sync, you can also use the Sync Now button.

With the Zapier integration, you can connect your cmercury account to thousands of other apps (Google Sheets, online forms, online stores, CRMs, and more) without coding. For example, you can automatically add new leads from a form to a contact list, or automatically add new store customers to a specific segment.

Prerequisites: a Zapier account, an active cmercury account, and your cmercury account’s API Key (from Account Settings > API Key).

Setup steps:

  1. In Zapier, choose the source app (Trigger) you want.
  2. Choose cmercury as the destination app (Action).
  3. Connect your cmercury account using the API Key.
  4. Map the required fields (email, name, custom attributes).
  5. Test and turn on the Zap.

Once it is on, data flows automatically, with no manual uploading or syncing. For more help, contact Najva support.

Programmatic connection (SMTP and API on AhaSend)

Section titled “Programmatic connection (SMTP and API on AhaSend)”

If you want to send transactional email directly from your own code or system (not through the campaign panel), Najva’s email service is built on the AhaSend infrastructure for this purpose. You can’t create an AhaSend account directly. To get the credentials you need (SMTP username/password or API Key), contact Najva support.

Two connection methods are available:

  • SMTP: for quickly connecting software and plugins that support the standard SMTP protocol. It covers server addresses, port and encryption settings, and error codes. For full details, see Sending email with SMTP.
  • API: for full programmatic control, including message formatting, variable substitutions in the email body, and personalized bulk sending to multiple recipients in one request. For full details, see Sending email with the API.