A
Aneesh Pulukkul[MCSD.Net]
Hi,
I have a HTML page and associated images. I need to send the HTML as
email -the email should also display the images at respective places.
So am sending the content of HTML file as MailMessage.Body and adding
all the referred images using MailMessage.Attachments.Add().
The images referred using <IMG SRC="Logo.png" /> are displaying
properly in the email, but the image referred by <TABLE
STYLE="background-color:#000000;background-image:url(Background.png);
width: 600px; height: 800px;"> is not displaying in the mail and it
stays in the attachment section. Due to requirements I cannot modify/
replace background-image:url(Background.png); section in the STYLE
property.
Is there any way to embed the images inline in this context? Or is
there any way to render the the aforementioned Background.png image
from attachments?
Any inputs will be appreciated!
Thanks in advance.
Regards,
Aneesh P
I have a HTML page and associated images. I need to send the HTML as
email -the email should also display the images at respective places.
So am sending the content of HTML file as MailMessage.Body and adding
all the referred images using MailMessage.Attachments.Add().
The images referred using <IMG SRC="Logo.png" /> are displaying
properly in the email, but the image referred by <TABLE
STYLE="background-color:#000000;background-image:url(Background.png);
width: 600px; height: 800px;"> is not displaying in the mail and it
stays in the attachment section. Due to requirements I cannot modify/
replace background-image:url(Background.png); section in the STYLE
property.
Is there any way to embed the images inline in this context? Or is
there any way to render the the aforementioned Background.png image
from attachments?
Any inputs will be appreciated!
Thanks in advance.
Regards,
Aneesh P