Hi, this is my first time here so i hope i can find some help ^^
My problem is that i'm working on a project and i have to send embedded images in an email. Here is an example of my code :
Dim FicImage As New LinkedResource(chemin)
Dim cle As String = Key.Substring(4, Key.Length() - 4)
FicImage.ContentId = cle
FicImage.TransferEncoding = TransferEncoding.Base64
htmlView.LinkedResources.Add(FicImage)
mail.AlternateViews.Add(htmlView)
But when i receive the mail, there are .dat files in attachments and i really don't understand how i can solve this. Anyone has an idea ?
My problem is that i'm working on a project and i have to send embedded images in an email. Here is an example of my code :
Dim FicImage As New LinkedResource(chemin)
Dim cle As String = Key.Substring(4, Key.Length() - 4)
FicImage.ContentId = cle
FicImage.TransferEncoding = TransferEncoding.Base64
htmlView.LinkedResources.Add(FicImage)
mail.AlternateViews.Add(htmlView)
But when i receive the mail, there are .dat files in attachments and i really don't understand how i can solve this. Anyone has an idea ?