Synchronization for sending mails