8 mins read

How to Fix Contact Form Email Sending Issues on Hostinger WordPress Using SMTP

Introduction

Email delivery issues in WordPress contact forms can affect customer communication and lead to missed inquiries. On Hostinger WordPress hosting, these problems usually occur due to incorrect mail server configuration or lack of proper authentication.

This guidde explains how to fix contact form email sending issues by configuring the WP Mail SMTP plugin and integrating Google Gmail API. By following these steps, you can securely authenticate your website with Gmail’s SMTP servers and ensure that all contact form messages and notification emails are delivered reliably.


1. Unable to Send Message

An error occurred while sending the message due to a configuration issue. Please try again later or contact the site administrator for assistance.

Unable to Send Message

2. Hostinger Dashboard

This section of the Hostinger dashboard is used to fix email sending issues on a WordPress website, ensuring contact form messages and notification emails are delivered successfully.

Hostinger Dashboard

3. Click Hostinger Website Section

Click the link on the Hostinger homepage to begin accessing your website management options.

Click Hostinger Website Section

4. Select WP Admin Option

Click the “WP Admin” button to open the WordPress administration panel for your site.

Select WP Admin Option

5. Switch to Specific WordPress Site

Switch to your WordPress site by selecting the site named “sandybrown-starling-957372.hostingersite.com” to manage its settings.

Switch to Specific WordPress Site

6. Click Add Plugin Button

Click the Add Plugin button in your WordPress dashboard to begin installing the SMTP plugin.

Click Add Plugin Button

7. Open Search Plugins

Click the Search Plugins field to find the SMTP plugin needed for email configuration.

Open Search Plugins

8. Enter SMTP In Search

Enter smtp in the search bar to locate the SMTP plugin for WordPress.

Enter SMTP In Search

9. Install SMTP Plugin

Click Install Now to add the SMTP plugin to your WordPress site.

Install SMTP Plugin

10. Activate SMTP Plugin

Click Activate to enable the SMTP plugin after installation.

Activate SMTP Plugin

11. Open WP Mail SMTP Plugin

Click WP Mail SMTP in the plugins list to access its settings.

Open WP Mail SMTP Plugin

12. Open General Settings

Click Settings again in the General section to proceed with setup.

Open General Settings

13. Enter Email Address

Enter your email address to be used for sending emails from your website.

Enter Email Address

14. Proceed To Next Step

Click the indicated button to continue with the SMTP setup process.

Proceed To Next Step

15. Select Google Gmail Option

Click Google / Gmail as the mailer option to use Gmail’s SMTP service.

Select Google Gmail Option

16. Open Backup Connection

Click Backup Connection to add an additional connection option if needed.

Open Backup Connection

17. Go To Google Cloud Console

Switch to console.cloud.google.com to manage Google Cloud projects and APIs.

Go To Google Cloud Console

18. Select Project Menu

Click Select a project to choose or create a Google Cloud project.

Select Project Menu

19. Create New Project

Click New project to start setting up a new Google Cloud project for API access.

Create New Project

20. Fill Project Name Again

Fill Userportfolio to finalize the project name entry.

Fill Project Name Again

21. Create Project

Click Create to establish the new Google Cloud project.

Create Project

22. Access APIs & Services

Click APIs & Services to manage APIs for your Google Cloud project.

Access APIs & Services

23. Open API Library

Click Library to browse available APIs to enable for your project.

Open API Library

24. Search Gmail API

Fill gmail api in the search bar to locate the Gmail API.

Search Gmail API

25. Select Gmail API

Click Gmail API to open its details and enable it.

Select Gmail API

26. Enable Gmail API

Click Enable to activate the Gmail API for your project.

Enable Gmail API

27. Create Credentials

Click Create credentials to generate the necessary authentication keys.

Create Credentials

28. Choose User Data

Click User data to specify the type of data your app will access.

Choose User Data

29. Proceed To Next Step

Click Next to continue setting up OAuth credentials.

Proceed To Next Step

30. Fill App Name Userportfolio

Fill Userportfolio as the application name for OAuth credentials.

Fill App Name Userportfolio

31. Select Email Address

Click your email address to associate it with the OAuth consent screen.

Select Email Address

32. Open Email Addresses Section

Click Email addresses to manage authorized email accounts.

Open Email Addresses Section

33. Save And Continue

Click Save and continue to proceed with the OAuth setup.

Save And Continue

34. Click Indicated Area

Click the specified area to move forward in the process.

Click Indicated Area

35. Select Web Application

Click Web application to specify the application type for credentials.

Select Web Application

36. Switch To WordPress Site

Switch to your WordPress site to retrieve the authorized redirect URI.

Switch To WordPress Site

37. Open Redirect URI Field

Click Authorized redirect URI to view the URI needed for OAuth.

Open Redirect URI Field

Ad Banner

38. Return To Google Cloud Console

Switch back to the Google Cloud console to add the redirect URI.

Return To Google Cloud Console

39. Add New URI

Click Add URI to input the authorized redirect URI for your app.

Add New URI

40. Enter Redirect URI

Fill https://connect.wpmailsmtp.com/google/ as the authorized redirect URI.

Enter Redirect URI

41. Create URI Entry

Click Create to save the new authorized redirect URI.

Create URI Entry

42. Complete URI Setup

Click Done to finish adding the redirect URI.

Complete URI Setup

43. Open Credentials Tab

Click Credentials to view and manage your OAuth client IDs.

Open Credentials Tab

44. Access OAuth Consent Screen

Click OAuth consent screen to configure app permissions and publishing.

Access OAuth Consent Screen

45. Open Audience Section

Click Audience to manage who can use your OAuth app.

Open Audience Section

46. Publish OAuth App

Click Publish app to make your OAuth consent screen available to users.

Publish OAuth App

47. Confirm Publishing Action

Click Confirm to approve the app publishing.

Confirm Publishing Action

48. Return To Credentials

Click Credentials to continue managing your OAuth client IDs.

Return To Credentials

49. Click Indicated Area

Click the specified area to select your OAuth client ID.

Click Indicated Area

50. Select OAuth Client ID

Click your OAuth client ID to view its details.

Select OAuth Client ID

51. Select Client ID Field

Click Client ID field to input your OAuth client ID.

Select Client ID Field

52. Enter OAuth Client ID

Fill your OAuth client ID to connect WordPress with Google API.

Enter OAuth Client ID

53. Click Indicated Area

Click the specified area to copy the client secret.

Click Indicated Area

54. Select Client Secret Field

Click Client Secret field to input your OAuth client secret.

Select Client Secret Field

55. Enter Client Secret

Fill your client secret to complete OAuth credential setup.

Enter Client Secret

56. Save SMTP Settings

Click Save Settings to apply your SMTP and OAuth configurations.

Save SMTP Settings

57. Allow Email Sending

Click Allow plugin to send emails using your Google account.

Allow Email Sending

58. Select Google Account

Click your Google account to proceed with authorization.

Select Google Account

59. Open Advanced Options

Click Advanced to access additional sign-in options.

Open Advanced Options

60. Proceed To Unsafe Site

Click Go to wpmailsmtp.com (unsafe) to continue authorization.

Proceed To Unsafe Site

61. Confirm Authorization

Click Continue to approve plugin access to your Google account.

Confirm Authorization

62. Return To WordPress Site

Switch back to WordPress after completing Google authorization.

Return To WordPress Site

63. Open Tools Menu

Click Tools in WordPress to access email testing features.

Open Tools Menu

64. Enter Recipient Email

Fill your email address to receive the test email.

Enter Recipient Email

65. Send Test Email

Click Send Email to dispatch a test message from your site.

Send Test Email

66. Confirm Success Message

Click Success! to acknowledge the test email was sent successfully.

Confirm Success Message

67. Open Gmail Inbox

Switch to mail.google.com to check your Gmail inbox for the test email.

Open Gmail Inbox

68. also check from here

69. Review Email Permissions

Click the email permissions message to review access and settings.

Review Email Permissions

Conclusion

By following this guide, you have successfully configured SMTP settings and integrated Google Gmail API with your WordPress website on Hostinger. Your website is now able to send emails securely using authenticated servers, reducing the chances of delivery failure or spam filtering.

With proper SMTP setup, contact form submissions, password reset emails, and system notifications will work consistently. To maintain reliability, it is recommended to review email logs, update credentials when required, and test email delivery regularly. This setup improves website professionalism and strengthens user trust.

WooHelpDesk Support

Need expert help with WordPress email setup, hosting configuration, or website troubleshooting? WooHelpDesk provides reliable technical support to keep your website running smoothly and securely.

Visit: https://www.woohelpdesk.com
Call Us Toll-Free: +1 888 602 0119 (US & Canada)
Professional Support | Secure Solutions | Trusted Experts


Leave a Reply

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

Leave a Reply

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