Click here to Skip to main content
15,887,923 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
can we send mail by redirecting the page. and on the other page_load event we send the mail.

Make a WebPage which automatically sends an e-mail to the recent visitor accessing the WebPage, on occurrence of an event which causes the closing of webpage. Ask for the details and make appropriate assumptions accordingly.
Posted

1 solution

Can you be a little more clear on what you want to do?
for now, i don't find any issue why you should not be able to send an emailo as long as you got the recent visitor email id and email settings set up in your web application.

Since you trigger event is closing of a webpage:
1. you can use Javacript as email sender (client side if you have all data using a mailto) or
2. track the unload in javascript and use XMLHttpRequest in order to send the email through server side
 
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