Fix retrieval of domain email address for HTTPS sites and allow filtering of from address

We have this plugin activated on an HTTPS site and the emails were coming from `noreply@https`