🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
SMTP for Contact Form 7 icon
Maintenu Testé jusqu'à 7.0.9 #80 in contact form 7

SMTP for Contact Form 7

Secure your Contact Form 7 emails with this free SMTP plugin. It configures wp_mail() and features OAuth2, custom templates, and automated reports.

Installations actives1K+1 000 000 +
Téléchargements · 30D829▲ +37.3% vs prev. 30d
Évaluation4/52 avis
Score de santé48/100Juste
Téléchargements de tous les temps12.6KDepuis novembre 2022
Support résolu0 / 10% au cours des 2 derniers mois
A besoin deWP 5.5PHP 7.4+
Téléchargements · 7j246▲ +27.5% week over week
Notre verdict

Utiliser avec prudence

SMTP for Contact Form 7 works, but test it on a staging site before relying on it in 2026. It runs on 1K+ sites, is rated 4/5 and was last updated 5 months ago, and scores 48/100 on our health check.

  • Momentum — downloads up 37.3% vs the previous 30 days
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

142944Sep 2Oct 16Nov 30
Hier46
Moyenne quotidienne (1 ans)22
Jour de pointe45428 Avril 2026
12 Derniers mois8.1K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where SMTP for Contact Form 7 stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
Formulaire de contact 7 >100 4,387 Meilleurs plugins de formulaire de contact 7 →
courrier >100 5,612 Meilleurs plugins de messagerie →
oauth2 #9 451 Best oauth2 plugins →
SMTP #20 1,920 Meilleurs plugins SMTP →
wp-mail >100 4,575 Best wp-mail plugins →

Adoption de version

Part de sites actifs par version.

  • 1.176.0%
  • 0.017.8%
  • 1.06.1%

Répartition des notes

★★★★★★★★★★ 4 from 2 reviews

  • 5★50.0%
  • 4★0.00%
  • 3★50.0%
  • 2★0.00%
  • 1★0.00%

About SMTP for Contact Form 7

À partir du Lisezmoi officiel · v1.1.2

Description

WordPress uses PHPMailer to send mail from with your local mail server, but it can happen that your mail were not accepted by mail providers…
This can happen for several reasons, sometimes because the mail server is not configured or sometimes because the records DKIM, DMARC and SPF of the domain been set up correctly and so on…
Anyway you can avoid any problems by using an external SMTP server and sending mail with it!

Additional features

✅ OAuth2 Authentication: Securely connect to Gmail and Microsoft Office 365 without needing to store passwords in your database or enable “less secure apps”.
✅ Per-Form Custom Templates: Wrap CF7 emails with beautiful templates. You can now select a specific custom template for each form directly from the plugin settings!
✅ Global or CF7-Only Mode: Choose whether to override all WordPress emails with this SMTP configuration or limit it exclusively to Contact Form 7 submissions.
✅ Live testing: a module for testing e-mail settings with the Rest-Api (that avoid to reload the page for this kind of test). The entire output of the php mailer will be captured, which will be useful in case of configuration errors or to get the wrong parameter when is possible.
✅ Automated Reports: choose when and what email you want to receive the report and I will send you a beautifully formatted HTML summary of sent and failed emails. Includes log retention settings to keep your database clean.
✅ Advanced Headers & Security: Easily automatically set “Reply-To” headers, allow insecure options for self-signed certificates, and define custom “From Name” and “From Email” settings.

This plugin is ads free and I don’t want to try to sell you any pro version!
If you want to contribute, there are many ways to do so, from simple suggestions and bug reports to translating and contributing code.
See below how to do it!

SMTP

SMTP stands for ‘Simple Mail Transfer Protocol’.
It is a connection-oriented, text-based network protocol of the Internet protocol family and as such is on the seventh layer of the ISO/OSI model, the application layer.
Like any other network protocol, it contains the rules for proper communication between networked computers.
SMTP is specifically responsible for sending and forwarding e-mails from a sender to a recipient.
Since its release in 1982 as the successor to the ‘Mail Box Protocol’ in Arpanet, SMTP has become the standard protocol for sending e-mails.
However, the SMTP procedure remains largely invisible to the normal consumer, as it is executed in the background by the e-mail programme used.
Only if the software, the webmail application on the browser or the mobile e-mail application does not automatically determine the SMTP protocol when creating an account, does it have to be set manually to ensure smooth e-mail traffic.

SMTP presets

  1. Aruba
  2. Gmail (tls and ssl)
  3. Yahoo (tls and ssl)
  4. Outlook (tls and ssl)
  5. Office365 (tls)

OAuth2 Setup

Google Gmail
To use Gmail with OAuth2, you need to create a Google Cloud Project:
1. Create Project: Go to Google Cloud Console and create a new project.
2. Enable Gmail API (Required): Go to APIs & Services > Library, search for Gmail API, and click Enable.
3. Configure Consent Screen: Go to OAuth consent screen and create an External app.
* Scopes: Click Add or Remove Scopes, search for the Gmail API, and check the boxes for .../auth/userinfo.email and .../auth/gmail.compose (or https://mail.google.com/).
* Publishing Status: Click Publish App to push it to production (otherwise, your connection token will expire every 7 days).
4. Create Credentials: Go to Credentials > Create Credentials > OAuth client ID.
* Application type: Web application.
* Authorized redirect URIs: Copy and paste the exact callback URL provided in your plugin settings.
5. Connect: Copy the generated Client ID and Client Secret into the plugin settings and click Connect.
6. Grant Permissions (Critical): During the Google login popup, click Advanced > Go to App if prompted with an “unverified app” warning. You must explicitly check the boxes that ask for permission to compose/send emails before clicking Continue.

Microsoft Office 365
1. Go to the Azure Portal (portal.azure.com).
2. Navigate to Azure Active Directory > App registrations > New registration.
3. Enter an application name and set the Redirect URI (Web) to the exact URL provided in the plugin settings.
4. Go to Certificates & secrets and create a new client secret. Copy the secret’s Value.
5. Go to API permissions > Add a permission > Microsoft Graph > Delegated permissions and add SMTP.Send and offline_access.
6. Copy the Application (client) ID and the Client Secret into the plugin settings.
7. Click Connect with OAuth2.

Would you like to find more presets (that you think are useful to other users)?
Open a request in the support form and provide the necessary connection data (auth, server address and port).
In the next cf7-smtp version you will find the required configuration among the presets.

La sécurité

It’s warmly advised to use OAuth2 for supported providers (Gmail, Office365) so no passwords are saved. If using basic SMTP authentication, it is highly recommended to store at least the password into wp-config.php as a constant.
And in addition, it’s also very easy! It needs only to add

define( 'CF7_SMTP_USER_PASS', 'mySecr3tp4ssWord' );

into your wp-config.php just before

/* That's all, stop editing! Happy publishing. */

All passwords will be stored encrypted, but still it is not good practice to put it into database!

Quick setup

As with the user password other security constants can also be defined.
Available constants are CF7_SMTP_USER_NAME, CF7_SMTP_USER_PASS, CF7_SMTP_OAUTH2_CLIENT_ID, CF7_SMTP_OAUTH2_CLIENT_SECRET.

define(
    'CF7_SMTP_SETTINGS',
    array(
      'user_name' => string,
      'user_pass' => string,
      'oauth2_client_id' => string,
      'oauth2_client_secret' => string,
  ));

Modèle

Wouldn’t it be better to have a small container to make our mail a little prettier?
Well we have it! You can now assign specific templates to each of your forms via the plugin settings dashboard.
To use your own custom templates for emails, simply create them by following these steps:
1. Create a folder named cf7-smtp/ or templates/cf7-smtp/ in your theme (or child theme) folder.
2. Create a .php or .html template file inside it.
3. Go to the plugin settings under Style > Form Email Templates, and select your newly found custom template from the dropdown menu for the desired form.
4. (Optional) You can customize the logo, website link, and other template parts. Checkout the filter documentation on GitHub/wiki.

Soutien

Community support: via the support forums on wordpress.org
Bug reporting (preferred): file an issue on GitHub

Contribuer

We love your input!
We want to make contributing to this project as easy and transparent as possible, whether it’s:

  • Reporting a bug
  • Testing the plugin
  • Discussing the current state, features, improvements
  • Submitting a fix or a new feature

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
By contributing, you agree that your contributions will be licensed under its GPLv2 License.

Installation

Utilisation du tableau de bord WordPress

  1. Accédez à "Ajouter un nouveau" dans le tableau de bord des plugins
  2. Search for ‘cf7-smtp’
  3. Cliquez sur "Installer maintenant"
  4. Activer le plugin sur le tableau de bord du plugin

Téléchargement dans le tableau de bord WordPress

  1. Accédez à "Ajouter un nouveau" dans le tableau de bord des plugins
  2. Accédez à la zone "Télécharger"
  3. Sélectionnez cf7-smtp.zip à partir de votre ordinateur
  4. Cliquez sur "Installer maintenant"
  5. Activer le plugin dans le tableau de bord du plugin

Utilisation de FTP

  1. Télécharger cf7-smtp.zip
  2. Extrayez le répertoire cf7-smtp sur votre ordinateur
  3. Téléchargez le répertoire cf7-smtp dans le répertoire /wp-content/plugins/
  4. Activer le plugin dans le tableau de bord du plugin

Journal de modifications

1.1.2

  • New: Added an optional “Tenant ID” setting for the Office 365 provider to support single-tenant Azure applications, preventing AADSTS50194 endpoint errors.
  • Fix: Resolved a critical issue with the Office 365 OAuth2 flow where the user email was not stored, causing XOAUTH2 mail delivery to fail. The plugin now properly extracts identity claims directly from the JWT access token.
  • Fix: Fixed a bug where non-CF7 WordPress emails were completely dropped when the “SMTP Mode” was set to “Contact Form 7 Only”. Normal emails will now correctly bypass the SMTP transport.
  • Fix: Resolved an issue in the settings validation where newly entered OAuth2 credentials were unintentionally wiped if the user saved them while simultaneously changing the authentication method.
  • Fix: Patched a silent failure in the OAuth2 REST API endpoint that previously returned a success status with a null URL instead of a proper error message when client credentials were unreadable or missing.
  • Refactor: Cleaned up wp-config.php constant definitions. Removed unnecessary hardcoded constants for non-sensitive settings (Host, Port, From Mail, etc.) and introduced dedicated security constants for CF7_SMTP_OAUTH2_CLIENT_ID and CF7_SMTP_OAUTH2_CLIENT_SECRET.
  • Changed: Legacy wp-config.php constants for SMTP host, port, authentication, from email, and from name are no longer supported; only username, password, and OAuth credentials remain configurable through CF7_SMTP_SETTINGS for improved security.
  • Changed: The minimum PHP version requirement has been raised to 7.4.x.
  • Note: Special thanks to @ammannit for reporting the issues that were instrumental in identifying and resolving the Microsoft Office 365 login flow.

1.1.1

  • Security: Implemented AES-256-GCM encryption for sensitive data with enhanced key and IV handling.
  • Security: Hardened OAuth2 flow with strict state validation to prevent replay attacks and improved sanitization of GET parameters.
  • Security: Added autocomplete=”off” to OAuth2 Client ID and Secret fields and implemented nonce validation for import/export actions.
  • New: Introduced custom OAuth2 Scopes support and configurable scope separators.
  • New: Added a dedicated Reply-To email input field, replacing the legacy checkbox logic for better flexibility.
  • Enhancement: Integrated SMTP Transaction Logging to capture raw debug details for easier troubleshooting.
  • Enhancement: Added tracking for CF7 form IDs and Page IDs during email submissions.
  • Enhancement: Added a notification system to handle specific error responses from Microsoft OAuth services.
  • Enhancement: Added a secondary OAuth redirect URI without parameters to satisfy strict Microsoft requirements.
  • Refactor: Significant code cleanup to align with WordPress Coding Standards and PHPMailer method naming conventions.
  • Note: Legacy “Reply-To” settings are automatically migrated to the new reply_to_email configuration attribute.
  • Special thanks to @MemoryShadow for significant contributions for the MS Outloook 365 setup, security hardening and OAuth2 stability.

1.1.0

  • New: Added OAuth2 authentication support for Microsoft Office 365.
  • New: Per-form template selection! You can now assign specific custom templates to individual Contact Form 7 forms from the settings.
  • New: Custom templates are now supported inside your theme or child-theme folder (your-theme/cf7-smtp/).
  • New: SMTP Mode selection – choose whether to override all WordPress emails or just CF7.
  • Enhancement: Revamped automated reports with a beautiful HTML template.
  • Enhancement: Added log retention day settings and manual flush logs capability.
  • thanks to @islp for reporting the issues related to “from” field and dashboard widget visibility

1.0.0

  • Cleaner code, updated dependencies
  • @DAnn2012 has contributed fixin a bug in a translation string

0.0.2

  • The configuration panel has been integrated with Contact Form 7 forms
  • The widget which shows sent and unsent emails is now in the WordPress dashboard
  • Fix an issue about password being reset when saving the plugin options

0.0.1

  • First Release

Journal des modifications complet sur WordPress.org →

Captures d'écran

Plugin options (1/1)
Plugin options (1/1)

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best SMTP for Contact Form 7 alternatives

Tous les plugins de formulaire de contact 7 →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Addon de base de données pour le formulaire de contact 7 – CFDB7 Addon de base de données pour le formulaire de contact 7 – CFDB7 Enregistrez et gérez les messages du formulaire de contact 7. Ne perdez jamais de données importantes. C'est un poids léger… par Arshid 600K+ ★★★★★★★★★★ 5 (1.9K) Il y a 2 mois 89
2 Redirection pour le formulaire de contact 7 Redirection pour le formulaire de contact 7 Redirigez vers n'importe quelle page ou URL, exécutez des scripts après la soumission, enregistrez des données dans la base de données… par themeisle 200K+ ★★★★★★★★★★ 4.7 (277) il y a 5 jours 95
3 ReCAPTCHA V2 pour le formulaire de contact 7 ReCAPTCHA V2 pour le formulaire de contact 7 Ajoute ReCAPTCHA V2 à partir du formulaire de contact 7 5.0.5 qui a été déposé sur le formulaire de contact 7 5.1 par IQComputing 200K+ ★★★★★★★★★★ 5 (89) Il y a 6 mois 77
4 Champs conditionnels pour le formulaire de contact 7 Champs conditionnels pour le formulaire de contact 7 Ajoute une logique conditionnelle au formulaire de contact 7. de Jules Colle 100K+ ★★★★★★★★★★ 4.8 (166) il y a 1 semaine 85
5 DTX – Extension de texte dynamique pour le formulaire de contact 7 DTX – Extension de texte dynamique pour le formulaire de contact 7 Prolonge le formulaire de contact 7 en ajoutant des champs de formulaire dynamiques qui acceptent les codes courts pour préremplir… par Sevenspark 100K+ ★★★★★★★★★★ 4.7 (99) il y a 4 mois 65
6 LUKASAPPS CAPTCHA Outils pour le formulaire de contact 7 LUKASAPPS CAPTCHA Outils pour le formulaire de contact 7 Protégez le formulaire de contact 7 formulaires contre les spams avec Google ReCaptcha V2, ReCaptcha V3, HCaptcha ou… par lukasapps 100K+ ★★★★★★★★★★ 4.1 (48) Il y a 2 mois 88
7 Image CAPTCHA pour le formulaire de contact 7 et WPForms par HookAndHook (DSGVO/GDPR) Image CAPTCHA pour le formulaire de contact 7 et WPForms par HookAndHook… Ajoute une image CAPTCHA au formulaire de contact 7 et WPForms, GDPR Ready, Perfect WPForms ou Contact… par hookandhook 70K+ ★★★★★★★★★★ 4.7 (49) il y a 1 semaine 94
8 Base de données pour le formulaire de contact 7, WPForms, Elementor Formulaires Base de données pour le formulaire de contact 7, WPForms, Elementor Formulaires Enregistre le formulaire de contact 7, WPForms,Elementor Formulaires, formulaires CRM et bien d'autres formulaires de contact… Par avantages CRM 60K+ ★★★★★★★★★★ 4.8 (124) Il ya 3 jours 79
9 Addons Ultra pour le formulaire de contact 7 Addons Ultra pour le formulaire de contact 7 50+ addons essentiels pour le formulaire de contact 7 - Champs conditionnels, multi-étapes, redirection… par themefic 60K+ ★★★★★★★★★★ 4.8 (108) il y a 1 semaine 94
10 Faites glisser et déposez plusieurs fichiers pour le formulaire de contact 7 Faites glisser et déposez plusieurs fichiers pour le formulaire de contact 7 Ce simple plugin crée un glisser-déposer ou un téléchargement de fichiers multiples dans votre formulaire de confact 7… de Glen Don Mongaya 60K+ ★★★★★★★★★★ 4.8 (95) il y a 1 semaine 82

FAQ

SMTP for Contact Form 7: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is SMTP for Contact Form 7 free?

Yes. SMTP for Contact Form 7 is free to download and use from the official WordPress.org plugin directory.

Is SMTP for Contact Form 7 safe to use in 2026?

SMTP for Contact Form 7 works, but test it on a staging site before relying on it in 2026. It runs on 1K+ sites, is rated 4/5 and was last updated 5 months ago, and scores 48/100 on our health check.

How many websites use SMTP for Contact Form 7?

SMTP for Contact Form 7 is active on 1K+ WordPress websites and has been downloaded 12,637 times since it launched in November 2022. It was downloaded 829 times in the last 30 days.

Does SMTP for Contact Form 7 work with WordPress 7.1?

SMTP for Contact Form 7 is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does SMTP for Contact Form 7 need?

SMTP for Contact Form 7 requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was SMTP for Contact Form 7 last updated?

The latest version, 1.1.2, was released on June 22, 2026 (5 months ago).

Who makes SMTP for Contact Form 7?

SMTP for Contact Form 7 is developed and maintained by Erik.

What are the best alternatives to SMTP for Contact Form 7?

The most popular alternatives to SMTP for Contact Form 7 are Database Addon for Contact… (600K+ installs), Redirection for Contact For… (200K+ installs) and ReCaptcha v2 for Contact Fo… (200K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir