Fixed a bug that caused FROM address to not be valid in event sendmail was used