sending mails re-done