Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
1.60/5 (2 votes)
See more:
I am creating a website in C# MVC 5.0. it is a shoping website similar to flipkart.com

it should send email to buyers who have not come to site for 1 month.

how to send mail from my website every day?
Posted
Updated 5-Nov-14 10:36am
v2

A Scheduled Task should be enough, but you'll be irritating and possibly losing your customers.
 
Share this answer
 
Comments
Manas Bhardwaj 5-Nov-14 16:34pm    
ditto +5!
Sergey Alexandrovich Kryukov 5-Nov-14 16:36pm    
5ed. Best point here is about irritation. I believe, for many, monthly reminder could be a sufficient reason to cancel the membership.
—SA
[no name] 5-Nov-14 16:51pm    
Maybe this is the strategy of OP to housekeeping the database :-)
Sergey Alexandrovich Kryukov 5-Nov-14 17:01pm    
:-)
That's not the job of a website to send such emails on periodic interval.

I would suggest to write a console application (or even a PowerShell for that matter) and use the Task Scheduler[^] to schedule it on a specific time.
 
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