I have a WordPress site using the Gravity Forms plugin and Send Grid via the PostSMTP plugin.
Notification messages sent from the site when a form is submitted seem to surround the sender’s name in double quotes: "Any Name" <info@domain-redacted.com>
I have changed the sender name in Gravity Forms, but it always gets quotes - even with no sender name, it puts quotes around the email address.: "info@domain-redacted.com" <info@domain-redacted.com>
This is a message sent from the site to a visitor who has completed the form as an acknowledgement. Any ideas how to remove the double-quotes?
Ah ok - I’ll look into this, though it does seem like a bug in the first place. Why are the double quotes there?
Appreciate it’s a bad idea to edit the plugin files directly as they’ll be overwritten when the plugin is updated and could potentially cause other issues too
It isn’t a bug. According to the specification for how the From header is defined, the use of quotes around the name is optional but recommended when the name can contain special characters, spaces, or certain punctuation marks. The quotes help ensure proper parsing and interpretation of the header by email clients and servers.