Question send text and image in body of MailMessage

chinmaysony

New member
Joined
Dec 12, 2008
Messages
4
Programming Experience
1-3
hello friend ,

send text and image in body of MailMessage , in vb.net 2005 .
i create , Dim msg As New MailMessage

With msg
.From = New MailAddress(dtsend.Rows(0)(5))
.To.Add(dtsend.Rows(0)(4))
.Subject = dtsend.Rows(0)(6)
.IsBodyHtml = True
.Body = result
End With

result contain image

i want send body of msg with text and image

but i get Error : value of type 'system.drawing.image' cannot be converted to 'string' .

what is code to send ,body of msg with text and image .

if any one know please reply me soon.
 
See System.Net.Mail, OH MY! - the Linked Resouce article (2.6 or 4.4) describe one way. Another is simply attaching the image file (3.4) and use the filename in a img tag.
 
Back
Top