Urgent

5 views
Skip to first unread message

Praneet Rastogi

unread,
Apr 17, 2012, 12:02:22 AM4/17/12
to dotnetde...@googlegroups.com
Can anybody pls tell me how to send Email with HTML contents (Images with CSS and Hyperlinks) in ASP.Net with C# ??


--
Regards,
Praneet Rastogi

Stephen Russell

unread,
Apr 17, 2012, 9:33:09 AM4/17/12
to dotnetde...@googlegroups.com
On Mon, Apr 16, 2012 at 11:02 PM, Praneet Rastogi
<praneet...@gmail.com> wrote:
> Can anybody pls tell me how to send Email with HTML contents (Images with
> CSS and Hyperlinks) in ASP.Net with C# ??
-------------

Do you know how to craft the HTML without CSS? Where your email goes
the .css file does not.

probably a <table> driven text statement is what you will need to create.


--
Stephen Russell

901.246-0159 cell

Adrian Bastyr

unread,
Apr 17, 2012, 9:45:40 AM4/17/12
to dotnetde...@googlegroups.com
You don't need to use .css file when you have inline css within <style> tag.

Dne 17. dubna 2012 15:33 Stephen Russell <sruss...@gmail.com> napsal(a):

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetde...@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Praneet Rastogi

unread,
Apr 19, 2012, 1:52:46 PM4/19/12
to dotnetde...@googlegroups.com
I hv tried the stuff with inline css but its not working with images. pls help.
--
Regards,
Praneet Rastogi

Jay Dan

unread,
Apr 20, 2012, 2:21:48 AM4/20/12
to dotnetde...@googlegroups.com
Image paths should be absolute path not relative path for example

http://webdesign.about.com/images/img1.jpg.

Note:You typically use the absolute path with the domain to point to Web elements that are on another domain than your own.
Jay

vishal sharma

unread,
Apr 20, 2012, 11:26:05 PM4/20/12
to dotnetde...@googlegroups.com
SET ISBODYHTML PROPERTY OF MAILMESSAGE TO TRUE AND THATS IT ...

Nestor Ramirez

unread,
May 10, 2012, 3:49:49 PM5/10/12
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I accomplished that using the using the System.Net.Mail class.
use the IsBodyHtml = Tue property
You can attach your images to the email with
System.Net.Mail.Attachment
Your HTML all you need to do is reference your attached images with
the name (only, no paths)

Let me know if you can't get anywhere. I can share my class with you.

Nestor

vishal sharma

unread,
May 12, 2012, 3:32:25 PM5/12/12
to dotnetde...@googlegroups.com
There you have to use img tag of html
<img src="whatever" /> 

Reply all
Reply to author
Forward
0 new messages