title: SSIS send mail task doesn't run through SQL Server agent job
body: <p>I have created SSIS package with <strong>Send mail task</strong></p>
  
  <p>It works (sends one email with multiple attachments) when I run SSIS package on <strong>SQL Server Data tools for Visual Studio</strong></p>
  
  <p>But when I run same package through <strong>SQL Server Agent -> Job</strong> it doesn't send email.</p>
  
  <p>In SQL Server I have created below,</p>
  
  <p>Under <strong>Security -> Credentials -> Added UserName</strong></p>
  
  <p>Under <strong>SQL Server Agent -> Proxies -> SSIS Package Executions -> Added Credential name</strong></p>
  
  <p>I have created SQL Server Agent -> Job </p>
  
  <p><a href="https://i.stack.imgur.com/29Jm5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/29Jm5.png" alt="enter image description here"></a></p>
  
  <p>Still SQL Server Agent Job (SQL Server 2014) fails to send email.</p>