Solved

E-newsletter: need to keep track of subscriptions expiring

Posted on 2004-08-23
7
281 Views
Last Modified: 2009-12-16
I am looking to do the following with ASP.

We have a website where a person will be able to subscribe to a paid e-newsletter

These things are in place:

1) Subscribe to an e-newsletter – I have a pre-built solution which  I have not gotten to work yet but I believe it’s just a few mail server settings.
http://www.tassietek.com/mailerfree/default.asp
or
http://www.tassietek.com/mailerpro/

2) pay for newsletter
This is in place – we have an existing internet merchant account which goes to authorize.net and we are already able to make this work with taking secure payments from a web page form with ASP

3) This is where I need the help. How do you keep track of a persons subscription expiring -- 149.00 for 1 year -- and toward the end of the one year, generate an email to the person that the subscription is due for renewal.

The mailer free or mailer pro comes with a decent pre-built Access database.

-- Dan
0
Comment
Question by:danomatic
7 Comments
 
LVL 46

Accepted Solution

by:
fritz_the_blank earned 300 total points
ID: 11872567
So what you need to start with is a SQL select that will give you the records that you need:

strSQL = "SELECT * FROM tblYourTable WHERE DateDiff('d',datYourDateField,Date())<45"

for example would give you all records that will expire in the next 45 days.

FtB
0
 
LVL 3

Assisted Solution

by:JagC
JagC earned 200 total points
ID: 11872944
Does the access database come with an expiry date field in the user table? If not then add one. You may need to modify your subscription pages to add an entry in this field.
Eg if they sign up for a year add the field as:

DateAdd("M",12,now())

This would add 12 months to the current date.

If you want to send out a reminder (assuming it's not included with the news script) you need a function that will mail those that are going to run out soon. Without getting into scheduled scrpipting (covered loads of times on EE) I'd do the check when sending out the newsletter.
If the newsletter script already has an expiry check then great. (If not add it - see above).

When sending out hte newsletter, call a separate function which checks to see which accounts are going to run out (use FtBs sql statement).

Doing it as a function and calling it when the newsletter is sent means that a user will recieve the newsletter and a separate reminder email.

This all assumes though that this email program isn't wrapped up in a DLL or something :)
0
 
LVL 4

Expert Comment

by:MrClean21
ID: 11872959
Hi,

You could use an expireDate field in the database and select * where expireDate > Date().
To email a notification, you could use a vbscript running in a scheduled task every night sending an email to everyone who has select * where expireDate = DateAdd('d', 7, Date())

MrClean
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Author Comment

by:danomatic
ID: 11873701
wow, ok I have to digest some of this.

Let me check on the script to see if there is any means of expring a subscription.  There are no DLL's invloved at all, just ASP and soem VBScript.
0
 
LVL 3

Author Comment

by:danomatic
ID: 12098457
I am sorry, I have gotten held up on this project, I will resume this week.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12101837
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12327641
Glad to have helped, but any reason for the grade of B?

FtB
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now