How to set up an SMTP Relay for WordPress forms using WP Mail SMTP, Mailjet, and Avada Forms
If you’re running a WordPress site and using forms to collect enquiries, leads, or orders, reliable email delivery is essential. Unfortunately, WordPress’s default email function (wp_mail()) often falls short – messages may go to spam or not arrive at all.
In this guide, you’ll learn how to set up an SMTP relay using WP Mail SMTP, Mailjet, and Avada Forms to ensure your emails are delivered reliably and securely.
Why Use SMTP for WordPress Emails?
SMTP (Simple Mail Transfer Protocol) is a standard method for sending emails. Unlike the default PHP mail function, SMTP:
- Improves deliverability
- Authenticates the sender
- Reduces spam filtering
- Offers delivery tracking and logs
What You’ll Need
- A WordPress website with the Avada theme and Avada Forms
- The WP Mail SMTP plugin (free version is fine)
- A free or paid Mailjet account
- Access to your domain’s DNS settings (e.g. via GoDaddy, Cloudflare)
Step 1: Install WP Mail SMTP
- In your WordPress dashboard, go to Plugins > Add New.
- Search for WP Mail SMTP and click Install, then Activate.
- Go to WP Mail SMTP > Settings.
- Set your From Email (e.g. noreply@yourdomain.com) and From Name.
- Under Mailer, select Mailjet.
Step 2: Get Your Mailjet SMTP Credentials
- Log in to your Mailjet account.
- Navigate to Account Settings > SMTP & Send API.
- Copy your SMTP server (in-v3.mailjet.com), Port (587 for TLS), and your API key and Secret key (used as username and password in SMTP).
Step 3: Configure DNS for Better Deliverability
To prevent your emails from being marked as spam, you’ll need to authenticate your domain in Mailjet and add DNS records.
- In Mailjet, go to Senders & Domains > Domains.
- Add your sending domain (e.g. yourdomain.com).
- Mailjet will provide DNS records to add – usually:
- SPF: TXT @ v=spf1 include:spf.mailjet.com ~all
- DKIM: TXT mailjet._domainkey with a long string value
- Log in to your DNS provider (GoDaddy, Cloudflare, etc.) and add the TXT records.
- Wait for DNS propagation – this can take a few minutes to several hours.
- Return to Mailjet to verify that the records are correct.
✅ Tip: If you already use another email provider with SPF, you can combine the include: statements into one SPF record.
Step 4: Complete WP Mail SMTP Configuration
- Back in WordPress, under WP Mail SMTP > Settings:
- SMTP Host: in-v3.mailjet.com
- Port: 587 (TLS) or 465 (SSL)
- Encryption: TLS
- SMTP Username: Your Mailjet API Key
- SMTP Password: Your Mailjet Secret Key
- Save the settings.
- Use the Email Test feature in WP Mail SMTP to check that everything is working correctly.
Step 5: Configure Avada Forms
- In your WordPress dashboard, go to Avada > Forms and create a new form.
- Under the form’s Email tab:
- Set the recipient email address
- Customise the subject line and message
- Save the form and add it to any page or post using the Avada Builder or shortcode.
Because Avada Forms uses WordPress’s wp_mail() function, form submissions will automatically be sent using your Mailjet SMTP relay via WP Mail SMTP.
Step 6: Test the Setup
- Submit a form on your site
- Check that the email is received correctly
- Confirm that email headers show SPF and DKIM have passed
- You can also view delivery logs and stats in your Mailjet dashboard
Pro Tips for Deliverability
- Use a business email address like hello@yourdomain.com rather than a free one
- Set up a DMARC record for additional security (Mailjet provides guidance)
- Monitor bounce and complaint rates in your Mailjet account
- Consider enabling email logging in WP Mail SMTP (Pro version)
Final Thoughts
Using Mailjet with WP Mail SMTP and Avada Forms ensures your WordPress site sends authenticated, trusted emails that are far less likely to end up in spam.
It’s a one-time setup that can save you countless headaches and missed enquiries. If you’re unsure about DNS changes, most providers have detailed help articles – or you can contact their support for help.
Need help setting up your email delivery from your website? Get Spotted. Contact us today.
AI was used to write this post. Post was edited by the author.

