-
Notifications
You must be signed in to change notification settings - Fork 29
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
Email does not comply with addr-spec of RFC 2822 #183
Comments
If this provided You said you use "Name lastname <[email protected])>" so I tested with:
And it worked totally 100% fine. Even without the quotes its fine:
FYI, you should always include a
is the best solution assuming your form has a field for |
Thanks for the reply_to tip. I implemented it and it works! Here is my new email.yaml
Which throws the RFC error Here is my contact.md which I know does not have any lines for "name:" not sure what I need to fix here so that emails are sent to 'Jane Doe [email protected]' and come from 'John Doe [email protected]'
|
OH, change your email
You were setting the 'email' only part ( |
when I change the Symfony\Component\Mime\Exception\RfcComplianceException thrown with message "Email "Jane Doe <[email protected]>" does not comply with addr-spec of RFC 2822." I am assuming I have to add some kind of I am following the the formating given in the email plugin interface: |
So you have quotes around it? Try removing. Maybe they are not regular quotes. |
No quotes |
I’m at a loss 🤷♂️ works for me when I try. |
Ya that’s weird. The escaping isn’t right. But I don’t even know how you could do that from a yaml configuration. |
The only way I get it to work is if my email.yaml looks like this:
|
@rhukster so from what you wrote above, it sounds like when you add name and email address to the Email plugin fields like so: Using:
Your email is delivered coming from in full |
When adding the following Name Lastname [email protected] to the default "to" or "from" I get the following error.
Symfony \ Component \ Mime \ Exception \ RfcComplianceException
Email "Name lastname <[email protected]>" does not comply with addr-spec of RFC 2822. But as far as I am concerned it does comply.
Here is my markdown for the contact form
contact.md
The text was updated successfully, but these errors were encountered: