Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
HOw to send an email automatically with out users events like button click etc..
Posted
Comments
choudhary.sumit 7-Dec-12 6:31am    
what you exactly want dear..?? when will u want to send me an email :)
AnkitGoel.com 7-Dec-12 6:32am    
please explain the scenario and the problem.

You will need to have some sort of a trigger mechanism to send the mail.
It could be a timer, a call from another program, anything.

Just send the email out on that....
 
Share this answer
 
I think you have to write windows service, so that the service continuesly hits your database in given time span and if there is new entry found it will send the mail automatically so that there is no need any user interaction.
 
Share this answer
 
please give an example program....vishal & Abhinav
 
Share this answer
 
Make One ScheduleMail Function in Masterpage CodeBehind...
Call it in Page Load of MasterPage..
trigger By Time..Like
in Schedulemail Function
if(System.DateTime.UtcNow= Ds.Tables[0].Rows[0]["DBTime"]
{
//send Mail
}
 
Share this answer
 
 
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