added support for logging job id of generated email