473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Email an image

I sent an email with an embedded image, but when I view the email, the
message is grayed. I'm unsure if it is my email provider that is blocking it.
Here is the mark up

message.IsBodyHtml = true;

message.Body = "<html><body><img src=cid:\"~/Images/logo.jpg\" alt=\" Logo\"
width=\"294\" height=\"226\"/></body></html>";

--
L. A. Jones
Sep 1 '07 #1
3 1465
Correction, it is the image that is grayed out only.
--
L. A. Jones
"Dave" wrote:
I sent an email with an embedded image, but when I view the email, the
message is grayed. I'm unsure if it is my email provider that is blocking it.
Here is the mark up

message.IsBodyHtml = true;

message.Body = "<html><body><img src=cid:\"~/Images/logo.jpg\" alt=\" Logo\"
width=\"294\" height=\"226\"/></body></html>";

--
L. A. Jones
Sep 1 '07 #2
I sent an email with an embedded image, but when I view the email, the
message is grayed. I'm unsure if it is my email provider that is
blocking it. Here is the mark up

message.IsBodyHtml = true;

message.Body = "<html><body><img src=cid:\"~/Images/logo.jpg\" alt=\"
Logo\" width=\"294\" height=\"226\"/></body></html>";
I suspect it's the use of a pathlike name in the "cid". Try specifying it
without
the "~/Images/" part.
How are you building that e-mail in your code?

Where are you viewing that e-mail? A local client (outlook (express), thunderbird,
...)
or some webmail?
Hans Kesting

Sep 3 '07 #3
Check rather the HTML result. May understand is that you'll get
cid:~/Images/logo.jpg wbut Im' not sure this is the id you thought to use
(in particular the ~character) ?

Also some clients are blocking images by default (some cold perhaps not
check if this is an internal resource or not and block anyway). What is your
mail client ?
--
Patrice

"Dave" <Da**@discussions.microsoft.coma écrit dans le message de news:
7A**********************************@microsoft.com...
Correction, it is the image that is grayed out only.
--
L. A. Jones
"Dave" wrote:
>I sent an email with an embedded image, but when I view the email, the
message is grayed. I'm unsure if it is my email provider that is blocking
it.
Here is the mark up

message.IsBodyHtml = true;

message.Body = "<html><body><img src=cid:\"~/Images/logo.jpg\" alt=\"
Logo\"
width=\"294\" height=\"226\"/></body></html>";

--
L. A. Jones

Sep 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dont bother | last post by:
Hey, I have been trying to parse emails: But I could not find any examples or snippets of parsing emails in python from the documentation. Google did not help me much too. I am trying to...
1
by: Simon Wigzell | last post by:
I send HTML formatted emails with links and images in them generated by my asp driven website. Occasionally the image will not appear and the link will not work. By looking at the email at the...
4
by: web_design | last post by:
I put this together from some other scripts I am using on a site. I'm trying to make a better email hiding script. It isn't working. Also, it causes Internet Explorer 6 SP2 to block the script...
3
by: jason | last post by:
Hello. This one is kinda out there. I have asp.net code that will email my yahoo account a <img> like with image on the server. When I open it in yahoo I get the full image on screen. works...
2
by: Fabio Negri Cicotti [MCP] | last post by:
Hi all. How do I do to display a picture on e-mail's body when visualized using Outlook Express? I've set the properties bellow but till now I've got the image shown as that box with a red...
1
by: frekster | last post by:
Hi. Looking for some feedback on how to prevent a specific spam attack. I have a form for a person to subscribe to a mailing list and they can type in their email and click submit to...
2
by: hurricane_number_one | last post by:
I have a php script which basically spits out an image. I want to send this image in an email but don't want the image to be an attachment, embedded in the email or cached. I'm able to do this...
4
by: Ahmd | last post by:
Pls help I want send one image and some text inside the image as mail. Pls how can i do it in asp. thanks in advance
3
by: nicjones | last post by:
Apologies if these have already been posted, had a quick search but couldn't find anything. Being a bit of a novice to web design I have 2 quick questions if you'd be so kind guys:- ...
1
by: E11esar | last post by:
Hi there. I am developing a mobile device application which has an OpenFileDialog control which copies an image into a PictureBox, code as follows: try { OpenFileDialog open = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.