By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,315 Members | 1,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,315 IT Pros & Developers. It's quick & easy.

email with images embedded

P: n/a
Hello,
I need to send an email from vb.net. The body may be html encoded, and all
images related to the html (<img src....>) may be embedded in the email
content instead of refer to remote urls.

I've tried a lot of solution, but I can only get a message with images
embedded but no html, or message with html but no images embedded. What is
the right way to have this goal?

I have a dictionary with <image name, image content as byte array >, and a
string with <img src="image name">. I've tried working with AlternateView,
CreateAlternateViewFromString, LinkedResource objects...

thanks
Nov 12 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Hi Trapulo,

Please take a look at following faq and let me know if this works for you:

#How do I embed images in an email?
http://www.systemnetmail.com/faq/4.4.aspx
Embedding images is something that is new with System.Net.Mail....

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 13 '06 #2

P: n/a
Thank you, this seems quite good.
"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Ff**************@TK2MSFTNGXA01.phx.gbl...
Hi Trapulo,

Please take a look at following faq and let me know if this works for you:

#How do I embed images in an email?
http://www.systemnetmail.com/faq/4.4.aspx
Embedding images is something that is new with System.Net.Mail....

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 13 '06 #3

P: n/a
Hello Walter,
I've embedded images using the way you suggested. However I have a problem:
mail clients as thunderbird, or webmails, shows images. Outlook Express only
shows html-formatted newsletter, but shows a red cross instead of images.

I've checked email's source an seems to be right. Links point to
"<cid:xxxx>" and all images are emebedded in source. What can be this
problem?

thanks
"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Ff**************@TK2MSFTNGXA01.phx.gbl...
Hi Trapulo,

Please take a look at following faq and let me know if this works for you:

#How do I embed images in an email?
http://www.systemnetmail.com/faq/4.4.aspx
Embedding images is something that is new with System.Net.Mail....

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Jan 28 '07 #4

P: n/a
Hi Trapulo,

What's the image's file type? such as a GIF, JPG, PNG? 6.0 and earlier
version of IE doesn't support PNG files.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 29 '07 #5

P: n/a
Hello Walter,
files are jpg or gif (alway sent with jpg mime).

I solved changing encoding of html from base64 to quoted. Howevere I've
still a problem with hotmail: only viewing the email from hotmail I can see
some (every the same) images, but not all. From outlook, OE, gmail, etc. all
ok. Any idea?

thanks
"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:T3**************@TK2MSFTNGHUB02.phx.gbl...
Hi Trapulo,

What's the image's file type? such as a GIF, JPG, PNG? 6.0 and earlier
version of IE doesn't support PNG files.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Jan 31 '07 #6

P: n/a
Hi Trapulo,

Do you mean that some images will always show fine when viewed in hotmail,
but some other will always show incorrectly?

Is it possible to send me a simple but complete project to reproduce the
issue?

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Feb 1 '07 #7

P: n/a
"Walter Wang [MSFT]" wrote:
Hi Trapulo,
Hi Walter, I've received your email: I didn't reply because viewing this
thread by outlook express I can't see your last message :( Now I'm using web
interface, where thread is complete..

Do you mean that some images will always show fine when viewed in hotmail,
but some other will always show incorrectly?
yes
Is it possible to send me a simple but complete project to reproduce the
issue?
Thank you, but I solved. There is a bug in hotmail, related to images file
name length. Now hotmail displays all images embedded in my emails.

Thank you anyway

Feb 6 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.