All confirmation-emails go into the same thread in gmail: Please add a way to use fromName (or fromEmail) in email subject to keep emails seperated
bencresty opened this issue · 2 comments
Description
Right now all notification-emails get the exact same subject. This is a problem when using gmail as all emails with the same subject gets stacked unto a continues thread. Which is not what we want, as emails come from different customers and we want to have these in different customer folders and also get to see them as seperate mail-threads in gmail.
This issue wouldn't be there if we could add something like {fromName}
(and/or {fromEmail}
because fromName is not always required) in the Subject Text field in the plugin settings.
We are on the need of this feature aswell. It gets confusing since all emails go to the same thread
Old issue, but fwiw: we solved this with a hidden input and some javascript (we're using AJAX for the submission, but you could also do this onchange
for the name input):
In the form:
<input type="hidden" name="subject" value="Contact Submission" data-original-value="Contact Submission">
And the js:
$form.on('submit', (e) => {
e.preventDefault();
let $subject = $form.find('input[name=subject]');
let fromName = $form.find('input[name=fromName]').val();
// Set dynamic subject line to avoid gmail making a conversation thread and hiding text
$subject.val($subject.data('original-value') + ' from ' + fromName);
...