Send mail task script to use exchange server RRS feed

  • Question

  • Hello!

    I am looking into for solutions to send mail script task to send mails from SSIS from Azure VM using an exchange server that is on different physical location.

    Can anyone shed some light?

    Thanks in advance....

    Monday, January 4, 2016 9:12 PM

All replies

  • you can use below Powershell command

    Send-MailMessage -From xyz@abc.com -To zyx@abc.com -Subject test -Body test -BodyAsHtml -SmtpServer "Exchange-Hub1"

    use your hub/SMTP server ip as SMTP server address Add azure VM ip into SMTP/HUB relay servers

    Tuesday, January 5, 2016 2:26 AM