Please note that using the free Gmail to send any email from Discourse isn’t supported. It’s again Google’s terms of service. Using Gmail on this way borders on an unsupported-install.
It’s hard to see how this feature request makes sense to implement, had you used a supported email mechanism the incident couldn’t have occurred.