-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem using Sendgrid with the Contact Form plugin #251
Comments
Not sure what this is caused by. Kind of intermittent behaviour. Closing until I hear more from the server guys. |
I have the same errors on the local DDEV install now, using the same credentials and System Email Address. The only thing that changes is the The problem seems to occur only with contact form messages / emails. When I test email settings either in local or in production, I get the emails from Craft |
I think I narrowed it down. Was using Contact Form Honeypot plugin on the contact form.
The contact form emails started to go through again. Not seeing any more errors in the logs saying that Sendgrid cannot match the Verified Sender Identity. |
I am going to look like an idiot here but maybe it can help someone else. The solution was quite simple and had nothing to do with the contact form plugin or the honeypot one. When I switched from using a simple SMTP config with Sendgrid to using the Sendgrid adapter, those errors disappeared and my emails started to get delivered. TLDR;
|
Description
Trying to use the contact form first party plugin with my sendgrid account:
Looking at the logs, I get the following kind of errors:
Craft's system email address is verified by SendGrid on this install, otherwise I wouldn't get test emails sent using that very address (I assume the contact for is using the System Email Address). It seems to me there there are no problem on the Sendgrid side / with sender identity here.
Craft CMS 4.5.6.1
Contact Form 3.0.1
Contact Form Honeypot: 2.0.0
PHP: 8.1.21
code for the form in case that helps
The text was updated successfully, but these errors were encountered: