To set up Contact Form 7 in WordPress, please refer to my previous blog. Now, let’s move on to configuring SMTP for Contact Form 7 to ensure reliable email delivery, especially for hosting providers that do not support the default mail() function.

  1. Install and Activate WP Mail SMTP Plugin
    • Navigate to the WordPress dashboard.
    • Go to Plugins -> Add New from the left-hand menu.
    • In the search bar, type “WP Mail SMTP”.ย  ย 

      WP Mail SMTP by WPForms Plugin

    • Click on Install Now, and then activate the plugin.ย  ย  ย  ย  ย  ย  ย  ย  ย  WP Mail SMTP by WPForms Plugin
  2. Configure SMTP Settings
    • Once the plugin is activated, go to WP Mail SMTP settings.ย  ย  SMTP Configuration Settings for WPForms Plugin
    • SMTP Setup Wizard will be opened. Fill in the required SMTP configuration details provided by your email service provider.ย  ย  ย  ย  ย  ย  ย  WP Mail SMTP Wizard
    • For gmail as SMTP host, select Other SMTP as shown below:
      WP Mail SMTP Wizard
  3. Generate an App Password for Gmail
    • Go to your Gmail account and navigate to Manage Google Account -> Security.
    • Ensure that Two-Step Verification is turned on. Google App Passwords for SMTP credentials
    • Visit Google App Passwords by hitting the url Google App Passwords .
    • Enter a name for the app (e.g., “WordPress SMTP”) and click on Create. Google App Passwords for SMTP credentials
    • A 16-character password will be generated as shown in the above image. Copy this password.
  4. Setup SMTP Credentials
    • Return to the WP Mail SMTP settings in your WordPress dashboard.
    • Fill the required SMTP information and Paste the 16-character password into the SMTP Password field. WP Mail SMTP Wizard
    • Complete the rest of the SMTP settings as required. Some steps of this wizard requires to be filled out like SMTP information and some steps can be skipped as shown in some of the following screenshots wherever Skip this Step button is available. WP Mail SMTP WizardWP Mail SMTP WizardWP Mail SMTP Wizard
  5. Test the Mail delivery
    • Now, test the delivery of email by entering the required information in your WordPress Contact Form.
      Testing of Deliverability of mail with WordPress Contact Form 7
    • After clicking on Submt button, you will get the success message of delivery as shown in the following screenshot:
      Testing of Deliverability of mail with WordPress Contact Form 7
  6. Conclusion

    By following these steps, you can successfully set up and configured SMTP for Contact Form 7 on your WordPress site. This ensures reliable email delivery, bypassing the limitations of the default mail() function, especially for hosting providers with strict email policies. With WP Mail SMTP and Gmail’s secure app password, your contact forms now become more dependable, providing a seamless experience for both you and your users.

,


One response to “How to Configure SMTP for Contact Form 7 in WordPress”

  1. Dorcas Ennis Avatar

    Hey there,

    Kudos on your new domain codecraftsbyishpreet.in! It’s thrilling to begin a new online venture.

    In line with our commitment to help new domain owners, I’m getting in touch with a useful resource for codecraftsbyishpreet.in.

    I’m talking about our the Google Maps Lead Collector – a Chrome extension that enables you to discover local businesses in your area.

    I’ve put together a quick video that illustrates how it works:
    https://www.youtube.com/watch?time_continue=20&v=1Dd7i4vNgu0

    This no-cost tool enables you to:

    Easily obtain targeted business leads
    Find prospects in specific sectors
    Streamline your prospecting
    Launch your business immediately
    You’ll get 50 leads per search with no restrictions on the number of searches!
    Simply grab your free copy from the video description.

    https://www.youtube.com/watch?time_continue=20&v=1Dd7i4vNgu0

    Here’s to your success with codecraftsbyishpreet.in! Feel free to reach out with any concerns.

    Kind regards,
    Dorcas Ennis
    Online Marketing Expert

Leave a Reply

Your email address will not be published. Required fields are marked *