Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to send a home page via email using asp.net with c# ?

Thanks!
Posted
Comments
OriginalGriff 1-Oct-12 3:56am    
Do you mean a link to a home page, or an entire home page as a viewable object?
Maddy selva 1-Oct-12 4:03am    
An entire home page.

"An entire home page."

OK - silly idea, little in an email annoys me more than the whole page without any relevant info as to why they are sending me something I could easily get if I wanted too, but...

All you have to do is set the MailMessage.IsBodyHtml property to true, and include the html source of your page as the body text. You probably can't use master pages and so forth (I've never tried, but it probably won't work since the email may well be viewed in a proprietary window rather than a browser).

I send Html fragments as Email from my website all the time: Sending an Email in C# with or without attachments: generic routine.[^]
 
Share this answer
 
Check this links

sending email in asp.net[^]

send email in asp.net[^]

How to send email through asp.net[^]

All the Best
Gopinath Natarajan
 
Share this answer
 
Comments
Maddy selva 1-Oct-12 8:55am    
Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900