Настройка SMTP-сервера на Windows
Send-MailMessage -SMTPServer localhost -To xxxxx@yourdomain.com -From xxxxx@gmail.com -Subject "This is a test email" -Body "Hi, this is a test email sent using Gmail as a smart host"
http://www.vsysad.com/2014/01/configure-smtp-server-on-windows-2012-to-use-gmail-to-relay-messages/