Reputation: 13
I have a package with a task used SEND MAIL Task, but its executing fine till it approach to send mail task and display an error. Which is [Send Mail Task] Error: An error occurred with the following error message: "Syntax error, command unrecognized. The server response was: 5.0.0 Your email system must authenticate before sending mail
Upvotes: 0
Views: 5303
Reputation: 5147
The mail server you're trying to use requires authentication before it will receive messages.
SSIS's SMTP connection manager is limited to supporting Windows authentication. This form of authentication might work if you were using a Windows-based mail server internal to your network (say, a Microsoft Exchange Server). However, it sounds like your server requires authentication with a username and password. SSIS doesn't support this out of the box.
sp_send_dbmail
might work. SQL Server's Database Mail supports basic authentication and SSL.Upvotes: 1