Zdravym.. potreboval by som poradit ohladom odosielania mailu s obrazkom.
V bmp je obrazok, ktory ukladam do memStream, a z neho potom vytvaram prilohu, lenze mail mi pride s obrazkom ale ma nulovu velkost.. neviem preco. Poradte.. dik
...
Bitmap bmp;
...
MemoryStream = new MemoryStream();
bmp.Save(memStream, ImageFormat.Jpeg);
...
ContentType contentType = new ContentType();
contentType.MediaType = MediaTypeNames.Image.Jpeg;
contentType.Name = "screen";
MailMessage mail = new MailMessage();
...
mail.Attachments.Add(new Attachment(memStream, contentType));
...
SmtpClient.Send(mail);