Sends the given log via email based on the given configuration.