Add a helper function for SMTP relay.