MailMessage MsgTorp = new MailMessage(pOrigem, pDestino, pTitulo, pTexto); ContentType mimeType = new System.Net.Mime.ContentType("text/html"); AlternateView alternate = AlternateView.CreateAlternateViewFromString(MsgTexto, mimeType); LinkedResource FotoUser = new LinkedResource(pFoto); FotoUser.ContentId = "FotoUserTorpedo"; FotoUser.TransferEncoding = TransferEncoding.Base64; alternate.LinkedResources.Add( FotoUser ); Attachment attach = new Attachment(pFoto); MsgTorp.Attachments.Add(attach); MsgTorp.IsBodyHtml = true; MsgTorp.AlternateViews.Add(alternate); SmtpClient SmtpCliente = new SmtpClient(); //pServer); SmtpCliente.Send(MsgTorp);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)