Added functional for sending mails (without templates).