Step 1: Create a SendGrid Account
- Visit SendGrid: Go to the SendGrid website.
- Sign Up: Click on the “Start For Free” button to sign up for a free account.
- Complete Registration:
- Enter your email address, password, and any other required details.
- Verify your email address by clicking on the verification link sent to your email.
- Complete Profile: Once your email is verified, log in to your SendGrid account and complete your profile information.
Step 2: Generate a SendGrid API Key
- Navigate to API Keys: After logging in, click on the “Settings” tab on the left-hand side menu, then click on “API Keys”.
- Create API Key:
- Click on the “Create API Key” button.
- Name your API key (e.g., WP Mail SMTP Key).
- Select the “Full Access” permissions to ensure the plugin can send emails properly.
- Click “Create & View” to generate your API key.
- Copy the API Key: Copy the generated API key. You will need this key to connect SendGrid with your WordPress site.
Step 3: Install and Configure WP Mail SMTP Plugin
- Install WP Mail SMTP:
- Log in to your WordPress admin dashboard.
- Navigate to Plugins > Add New.
- Search for “WP Mail SMTP by WPForms”.
- Click “Install Now” and then “Activate” to enable the plugin.
- Configure WP Mail SMTP:
- Navigate to WP Mail SMTP > Settings.
- Under the General tab, enter the following details:
- From Email: Enter the email address you want to send emails from (ensure it matches the domain you verified with SendGrid).
- From Name: Enter the name you want your emails to come from.
- Mailer: Select “SendGrid” from the list of available mailers.
- Enter SendGrid API Key:
- After selecting SendGrid, a new section will appear to enter your API key.
- Paste the API key you generated earlier in the “API Key” field.
- Save the settings by clicking the “Save Settings” button at the bottom.
Step 4: Test Your Configuration
- Send a Test Email:
- Navigate to WP Mail SMTP > Email Test.
- Enter an email address to send a test email to.
- Click “Send Email” to test the configuration.
- Check the Test Email:
- Check the inbox of the email address you sent the test email to.
- Ensure that the email is received correctly. If there are any issues, revisit the WP Mail SMTP settings and verify the API key and other configuration details.
Additional Tips
- Verify Your Domain in SendGrid: For improved deliverability and to prevent emails from being marked as spam, it’s recommended to verify your domain in SendGrid. You can do this by navigating to Settings > Sender Authentication in your SendGrid account and following the steps to verify your domain.
- Monitor Email Deliverability: Regularly check your email deliverability and performance metrics in SendGrid. This will help you identify any issues and ensure your emails are being delivered as expected.
By following these steps, you will have successfully created a SendGrid account and connected it to the WP Mail SMTP plugin in WordPress, allowing you to send emails reliably from your website.
