send mail automatically in a particular date

Thread Solved

Join Date: Mar 2008
Posts: 8
Reputation: Swin is an unknown quantity at this point 
Solved Threads: 0
Swin Swin is offline Offline
Newbie Poster

send mail automatically in a particular date

 
0
  #1
Jun 11th, 2008
Hello everybody,
Please help me. very urgent.
I am a Junior developer.

My problem is,
In my site there are number of users. There have entered for space,domain registration ,etc...
what is i want is. After one year the Domain Registration was expired.
Before one month of expiry date a mail was sent automatically.
Through coding in asp is it possible. How?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 133
Reputation: vicky_rawat is an unknown quantity at this point 
Solved Threads: 17
vicky_rawat's Avatar
vicky_rawat vicky_rawat is offline Offline
Junior Poster

Re: send mail automatically in a particular date

 
0
  #2
Jun 13th, 2008
Hi,
Yes it is possible in ASP.

You will need to schedule a asp page on windows and in that page you can check your condition. This page will run everyday on a specific time on server.

Hope this will help you.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 8
Reputation: Swin is an unknown quantity at this point 
Solved Threads: 0
Swin Swin is offline Offline
Newbie Poster

Re: send mail automatically in a particular date

 
0
  #3
Jun 18th, 2008
Hello vicky_rawat,
Thanks for ur reply. I can write an asp file and convert it into .vbs file and then using task scheduling i can run it.
But I want the solution of without scheduling and windows services.I can run the program daily.
Because somebody tells that it is the worst case if we can't find the solution.
Sorry if any mistakes in my reply
Thanks once again.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 133
Reputation: vicky_rawat is an unknown quantity at this point 
Solved Threads: 17
vicky_rawat's Avatar
vicky_rawat vicky_rawat is offline Offline
Junior Poster

Re: send mail automatically in a particular date

 
0
  #4
Jun 18th, 2008
I hope that you have a database and the expiry dates are stored in a table.
Then if you can run the page everyday, you can write a logic in asp page to check for the expiry date.
The page will send mails for whome expiry date is 1 month later.

I don't understand, what actually do you need, as This is the logic.
Are you asking for the code.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 36
Reputation: tomer1 is an unknown quantity at this point 
Solved Threads: 1
tomer1 tomer1 is offline Offline
Light Poster

Re: send mail automatically in a particular date

 
0
  #5
Jun 23rd, 2008
Sending e-mail with CDOSYS :-)

  1. <%
  2. Set myMail=CreateObject("CDO.Message")
  3. myMail.Subject="Sending email with CDO"
  4. myMail.From="mymail@mydomain.com"
  5. myMail.To="someone@somedomain.com"
  6. myMail.HTMLBody = "<h1>This is a message.</h1>"
  7. myMail.Send
  8. set myMail=nothing
  9. %>
Last edited by peter_budo; Jul 7th, 2008 at 8:17 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 8
Reputation: Swin is an unknown quantity at this point 
Solved Threads: 0
Swin Swin is offline Offline
Newbie Poster

Re: send mail automatically in a particular date

 
0
  #6
Jul 2nd, 2008
Hello vicky_rawat,
Sorry For the Late. At finally i have solve my problem using scheduling. Thanks for your reply.
I have also sending another solution which is helpful to anyone.
First create a table with two fields : flag,date(the runned date).
In asp page we can check is the mails are sent or not in the previous day. If not sent then we can repeat the code to sent mails in the not sending dates.
Then as regular code is running of the present day.
It is useful 'if in any particular day the mails or not sent'.
Thanks to tomer1.
Once again thanks to vicky_rawat.
If any mistakes in my mail please warn me and please forgive me.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC