In the feedback form, allow user to add text to the email subject and use user's email in the email "From" or reply-to" property
As Karine,
I want that the user can enter a subject in the feedback form and that the email contains the user's email address as the original email author,
So that I can better distinguish feedback emails from each other and respond directly and more efficiently to the users.
Detailed specifications
-
Add a new field for entering a subject, e.g., the user could enter "I love it!". Suffix the configured email subject, e.g. "Feedback about OECD Data Explorer" with ": " and the user's specific subject text, e.g., "Feedback about OECD Data Explorer: I love it!"
-
Modify the email parameters so that the finally delivered email appears to be authored by the user ("user name <user-email>" or only "user-email" if the full name is missing) and that replies are sent directly to the user.
Technically, this should be achievable by using the mailsender
property. RFC5322 says:The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field. In the absence of the "Reply-To:" field, replies SHOULD by default be sent to the mailbox(es) specified in the "From:" field unless otherwise specified by the person composing the reply.
Also see https://nodemailer.com/message/#routing-options.
Therefor, theFrom
parameter should be filled with the user name/email, as the user authored the feedback message and should receive replies, and theSender
parameter should be set to the generic email from the DE configuration, as the DE transmits the message.
--> Question to the devs: What is the purpose of the current HFROM field? Its purpose has not been documented yet.
-
Document the effect/purpose of the HFROM field.