Ciao oregon, ho provato ma restituisce il seguente errore
System.Net.Mail.SmtpException non è stata gestita
Message="Il server SMTP richiede una connessione protetta oppure il client non è stato autenticato. Risposta del server: 5.7.57 Client not authenticated to send mail. [ZR0P278CA0143.CHEP278.PROD.OUTLOOK.COM]"
Source="System"
StackTrace:
in System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) in System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) in System.Net.Mail.SmtpClient.Send(MailMessage message) in invio_mail.Form1.Form1_Load(Object sender, EventArgs e) in C:\PRG MAX\invio_mail\invio_mail\Form1.vb:riga 23 in System.EventHandler.Invoke(Object sender, EventArgs e) in System.Windows.Forms.Form.OnLoad(EventArgs e) in System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) in System.Windows.Forms.Control.CreateControl() in System.Windows.Forms.Control.WmShowWindow(Message& m) in System.Windows.Forms.Control.WndProc(Message& m) in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException: