Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to give the option in my webpage send this article to your friend as form your email Id.

like this link


please Help me.
Posted
Comments
Sandeep Mewara 6-Oct-10 6:00am    
Any effort? Tried anything?

1 solution

There's no magic button for this, but here's the approach I would take:

1) Create a separate MasterPage file that is used to render the page for the purpose of email. You'd need this in order to render the page and capture the output (aspx pages are not html pages).

2) When they click the button, use the email address they have provided to create a mail message. Request the page through an url that renders it with the MasterPage dedicated to email. Use WebClient to pull down the page and use that as the content of the email. Use the title of the page as the subject of the email.

3) Make sure that all the image paths are rendered as absolute and not relative links (easy), or embed all images and bake them into the email (harder).

4) Make sure you include a link to not receive future emails from your site (give them an opt-out option).

Cheers.
 
Share this answer
 

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