Aylık Arşiv: Şubat 2016

Inline – Base64 Image Send Mail

MailMessage oMailMessage = new MailMessage(); int PictureId = 1; string ImgUrl = "Base64Data"; string cidPictureId = "picture" + PictureId; byte[] data = System.Convert.FromBase64String(ImgUrl); MemoryStream ms = new MemoryStream(data); string htmlBody = "<h3>Mail Body İçereği</h3><img...

sp_send_dbmail – File attachment max size

sp_send_dbmail – File attachment or query results size exceeds allowable value of 10000000 bytes. [SQLSTATE 42000] (Error 22050).  The step failed. Hatasının çözümü "@query_result_no_padding = 1" yapmaktır.