Skip to content
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

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 #198

Open
bencresty opened this issue Sep 1, 2020 · 2 comments

Comments

@bencresty
Copy link

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.

@bencresty bencresty changed the title Please add a way to use fromName (or fromEmail) in email subject 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 Sep 1, 2020
@jorgeduardos
Copy link

jorgeduardos commented Sep 11, 2020

We are on the need of this feature aswell. It gets confusing since all emails go to the same thread

@natebeaty
Copy link

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);
      ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants