Send emails via smtp server.