refactored sending emails into contact instance