Relative Content

Tag Archive for phpsymfonysendgrid

Sendgrid Error: An error occurred: Expected response code “250/251/252” but got code “501”, with message “501 Recipient syntax error”

i recently changed the validation for email addresses in my API, to accept special chars such as ñ and accent marks. I never had any problems sending emails through my API and I still don’t have any problems sending them for recipients without special chars. but for the ones that do have special chars such as the ones previously mentioned, i get this error:

Symfony 6.x Messenger usage with Async and Sync

I’m facing a weird and stubborn situation. Been using Messenger component with Sendgrid in async:// mode with doctrine without issues, however the hosting platform where the project is being moved has an issue with cron; it can only execute every 30 minutes. That’s unacceptable for emails that need to go out asap, like transactional emails. Because of this, the messenger must be set in sync:// mode.