Torna al Thread

MailMessage msgMail = new MailMessage(); msgMail.To.Add(new MailAddress("xxxxx")); msgMail.From = new MailAddress("xxxxx", "xxxxx"); msgMail.Subject = "Invio Fattura Elettronica"; msgMail.IsBodyHtml = true; msgMail.Body = "Fattura allegata, messaggio da migliorare"; Attachment allegato = new Attachment("\\\\Domain\\DB Lambda Studio\\PDF_Fatture\\Fattura N° " + this.num_fatturaTextBox.Text + "_09.pdf"); msgMail.Attachments.Add(allegato); SmtpClient client = new SmtpClient("xxx", 25); client.Send(msgMail);
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5