C# equivalent of "use windows authentication" in the send mail task of SSIS ?

  • What is the C# equivalent of that ? Is it this -

    SmtpClient smtpClient = new SmtpClient();

    smtpClient.UseDefaultCredentials = true;

    or

    smtpClient.Credentials = CredentialCache.DefaultNetworkCredentials;

    or both ?

    Which is better ?

Viewing post 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply