added mail send function

smtp.conf is not commited because it contains password.