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

Empty emails #94

Open
gondzo opened this issue Mar 8, 2019 · 7 comments
Open

Empty emails #94

gondzo opened this issue Mar 8, 2019 · 7 comments

Comments

@gondzo
Copy link
Collaborator

gondzo commented Mar 8, 2019

I still occasionally receive emails with only project name with no actual notifications inside, ex
https://www.screencast.com/t/bTInb62Adh

@vikasrohit can you take a look at the email logs to check which events were sent there?

btw, maybe it would be a good idea to list all notification types covered by email templates and when sending an email log a warning or error if we run into a notification that doesn't have a template?

@vikasrohit
Copy link

@gondzo could you give me exact time stamp of the email?

@gondzo
Copy link
Collaborator Author

gondzo commented Mar 8, 2019

Mar 8, 2019, 02:00 EDT

@gondzo
Copy link
Collaborator Author

gondzo commented Mar 8, 2019

another idea for keeping track of these issues:

current templates are using a bunch of if statements to find the right template - we could use if/else if with a final else block that would render some error text. We could then render the template in our backend to check for error text and log it appropriately. This kind of defeats the purpose of having templates in sendgrid but is the only automated way I could think of to test if we're sending empty emails or not. what do you think @vikasrohit ?

@vikasrohit
Copy link

I think idea about having if-else-if instead of separate if-else blocks, might be good way to have some kind of differentiation between a valid email and an erroneous email. However, instead of rendering the template at backend, we can rather have a test account/email (or I can use mine real account as well) to receive all notification emails and then parse that email to look for the specific error message and act accordingly.

@gondzo
Copy link
Collaborator Author

gondzo commented May 3, 2019

that would work as well. any ideas for the error text to use? maybe a hidden div element so it's not visible to the actual recipients?

@vikasrohit
Copy link

Yes, we have to make it hidden either by making background and text color same OR actually setting visibility:hidden. Once it is hidden, we can use any error text. I would like to use constant style text for this e.g. NO_RENDERER_FOR_EVENT and we can append this text with actual event topic so that we can get all information from the template it self.

@vikasrohit
Copy link

@gondzo do you think you would be able to handle this?

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

No branches or pull requests

2 participants