web based mail clients removing image hyperlinks

When sending an email which contains an image with an embedded URL, this works fine when received by Windows Live Mail (for example). However, when received within a webbased email client only the image is shown and the hyperlink is not available. How can this be preserved ?
cehrnowAsked:
Who is Participating?
 
Seven priceConnect With a Mentor Full StackCommented:
did you try
Dim mailNew As New Net.Mail.MailMessage
        mailNew.IsBodyHtml = True
0
 
Seven priceFull StackCommented:
the image should be wrapped in basic html tag.

example
<a href="#" ><img src="" border="0" /></a>

this works in all email browsers.
0
 
Seven priceFull StackCommented:
0
 
cehrnowAuthor Commented:
I have tried format <a href="#" ><img src="" border="0" /></a>

..using..

Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString(as above format)
msgMail.AlternateViews.Add(htmlView)

Is there any reason why this should be different ?
0
 
cehrnowAuthor Commented:
Yes, just needed to keep it simple !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.