Solved

Send Newsletter Periodically

Posted on 2001-07-15
13
236 Views
Last Modified: 2012-08-13
How to do that?
0
Comment
Question by:ee_guest
  • 4
  • 3
  • 2
  • +3
13 Comments
 
LVL 33

Accepted Solution

by:
hongjun earned 300 total points
ID: 6284499
0
 
LVL 6

Expert Comment

by:kahlean
ID: 6284518
use this code from the site i suggested below. What  you need is to create a vbscript and the newsletter will be send by invoking the script by a file or program called cscript. Integrate this to schedule task manager in the windows by specifying the time you wanted to execute the script.

http://www.siteexperts.com/tips/backend/ts12/page1.asp

Regards
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6284521
erm...
kahlean, same url posted :0

It's okay cos sometimes I also did that unintentionally.

hongjun
0
 

Author Comment

by:ee_guest
ID: 6284564
Where are the other experts?
I am trying to gather more comments from different experts before evaluating them.
0
 
LVL 6

Expert Comment

by:kahlean
ID: 6284570
hi hongjun, soory for the duplication here. didnt really see it. But anyway, the code is good, i have tried implementing a a newsletter program in a vb project.

Regards
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6284648
It's okay since I know it is unintentional. I agree with you that the code is good.

hongjun
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 20

Expert Comment

by:Silvers5
ID: 6284736
To schedule email mainly you need to make a VB application or a VBS script that uses cdon't or one of the free mailing (or trial) available on the web.. read how to perform both:

How do I send e-mail from ASP?

There are several components that enable you to do this. You may already have one, if you have an SMTP server installed alongside IIS - it's called CDONTS. Here is the documentation and an article for CDONTS:
 
    http://msdn.microsoft.com/library/psdk/cdo/_denali_newmail_object_cdonts_library_.htm 
    http://www.aspfaq.com/faq/faqShow.asp?fid=49 
 
There are also several other components available (if I missed any, let us know)
 
    Genusa's AspMail
    http://www.serverobjects.com/products.htm#Aspmail 
 
    ASPEmail
    http://www.aspemail.com/ 
 
    Dundas Mailer
    http://www.dundas.com/index.asp?/products/mailer 
 
    MailListBot
    http://www.MailListBot.com/ 
 
    EasyMail
    http://www.easymailobjects.com/emobjects/smtp.asp 
 
    w3 Jmail
    http://www.dimac.net/ 
 
    HTMLMailer / HTMLMailerPlus
    http://www.oopadelic.com/htmlmailer/ 
    http://www.oopadelic.com/htmlmailerplus/ 
 
    DevMailer
    http://www.geocel.com/devmailer/ 
 
    VSEmail
    http://www.vsoft-tech.com.au/vsemail/readme.html 
 
    Mabry Mail
    http://www.mabry.com/mail/index.htm 
 
    NNTPClient+SMTPClient
    http://www.liquidcool.com/asp 
 
    SimpleMail
    http://www.adiscon.com/SimpleMail 
 
    AB Active X Mailer
    http://www.geocities.com/ResearchTriangle/2656/abmailer.html 
 
    OCXMail
    http://www.flicks.com/aspmail/ 
 
    WindMail
    http://www.geocel.com/windmail/ 
 
    Zaks.POP3
    http://www.zaks.demon.co.uk/code/cpts/pop/index.html 




How do I schedule ASP files?


Use the AT command and Windows Scripting Host to schedule a VBS file at certain intervals.
 
First, change the ASP to a VBS file. This is accomplished by (1) changing the extension to VBS; (2) changing all server.createobject calls to createobject; and, (3) removing all <%%> delimiters and any browser-destined code (for example, response.write statement or client-side HTML). I didn't run into any further complications, but YMMV.
 
You store the VBS file in the filesystem, and use the AT command to schedule it (this actually schedules its execution with NT's schedule service). At a command prompt, you can use AT by itself to see a list of tasks currently in the schedule. You can use AT /? to find out all its syntax possibilities.
 
For example, to get a file to run every weekday at 9:00 am, I launch this batch file (the first line clears existing entries):
 
    at /delete /y
    at 9:00 /every:m,t,w,th,f d:\net\shared\getdata.vbs
 
 
 
Notice there is no web server involved; the file is accessed directly through the file system. Once I got over the "a user has to be logged in" and "the tasks have to be reset when rebooted" hurdles (both of which I believe are problems with the particular machine that is not under our control), all has been running fine for me.
 



or you can use a ready made application like world merge. I don't know if it ca be scheduled.. I mainly do a VB application that on a certain date starts sending emails to addresses fetched from database backend..

if you need more help.. post

rgrds
0
 

Author Comment

by:ee_guest
ID: 6284776
I do know how to write emails scripts but I am using AspEmail because I am not using a ntfs partition.

Silvers5, because of that, I will not be able to use the NT scheduler right?
0
 
LVL 1

Expert Comment

by:Shane_OConnor
ID: 6285076
NT sched should work fine regardless of File system I think.
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6285111
regardless of the partition scheduling can be made on an NT platform or desktop (win 98..millenium)
you can use asp email same way.. if you don't want to shedule a VBS you can make a vb application that remains loaded in the backend and on a certaind day each month process sending tasks.. you can create from vb aspemail instances like:
if day(Now()) = "15" ' 15th day of month then
Set MailObj = CreateObject("aspemail obj name")
.. fetch from databases email.. send the emails and log somewhere in the db that the mail was sent for this month.. put a date stamp..etc

Set MailObj = nothing
0
 

Author Comment

by:ee_guest
ID: 6288083
I will try the code hongjun posted (siteexperts site) later.
0
 

Author Comment

by:ee_guest
ID: 6291884
I have moved to Win 2000 and am now using the code example hongjun suggested.

Thanks to all.
0
 

Expert Comment

by:lux_interior
ID: 7521399
Use www.cronservice.co.uk - it allows you to schedule asp scripts when you don't have access to Task Scheduler as in most ISP hosted solutions.

Cheers

lux
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

24 Experts available now in Live!

Get 1:1 Help Now