SPIKE: notify inviter if the invite they sent bounces
We believe that a subset of our invites will never be accepted as the email addresses were entered incorrectly.
We know that teams are more successful in their adoption of GitLab however 80% of our invites are never accepted. By ensuring that users are inviting valid emails we should hopefully increase the rate at which invites are accepted and thus the rate at which teams adopt our platform.
While we don't have specific bounce rate data for our invite emails, we do know that only ~21% of our invites are accepted - source. By notifying the inviter when an invite fails to be delivered we should hopefully improve this percentage by enabling the inviter to resend the invite to the correct email address, enabling the invite to be accepted.
Spike questions to answer
From an engineering perspective how can we actually detect a hard bounce, specifically who the hard bounced email was sent to (invitee), and then tie it back to informing the admin (inviter) that the invite they attempted to send was not delivered (hard bounced). For referenced our SaaS invite emails are sent out of MailGun.
- Potential solution to investigate, MailGun has a bounce API. Can we utilize this bounce API to check for new bounces, pull the email address that bounced (invitee), lookup who triggered that invite (admin), and either send that admin an email or display an in-app alert notification? (note for the MVC we should do either an in-app alert or an email selecting whichever is easier from an MVC perspective)
- Open to other potential solutions as well