We are using in Sql Server Integration Services 2016 a Script Task, which sends mail using the namespace
using System.Net;
using System.Net.Mail;
Microsoft documentation states that SSIS does not use basic authentication, but anonymous and windows authentication. However, I would like to know if the removal of basic authentication affects this development since it is in a task script and not using the SMTP tool itself. This process is currently used to automatically send communications to customers.
The code segment where the authentication is performed is the following:
Cliente SmtpClient = nuevo SmtpClient
{
UseDefaultCredentials = falso,
Credenciales = nuevo System.Net.NetworkCredential(User, Pass),
Anfitrión = Servidor,
EnableSSl = verdadero,
Nombre de destino = "STARTTLS/ smtp.office365.com ",
Puerto = PortInt,
DeliveryMethod = SmtpDeliveryMethod.Network,
Tiempo de espera = 50000,
};
what should I do
Thanks