Solved

Send Newsletter Periodically

Posted on 2001-07-15
13
235 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
Comment Utility
0
 
LVL 6

Expert Comment

by:kahlean
Comment Utility
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
Comment Utility
erm...
kahlean, same url posted :0

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

hongjun
0
 

Author Comment

by:ee_guest
Comment Utility
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
Comment Utility
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
Comment Utility
It's okay since I know it is unintentional. I agree with you that the code is good.

hongjun
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 20

Expert Comment

by:Silvers5
Comment Utility
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
Comment Utility
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
Comment Utility
NT sched should work fine regardless of File system I think.
0
 
LVL 20

Expert Comment

by:Silvers5
Comment Utility
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
Comment Utility
I will try the code hongjun posted (siteexperts site) later.
0
 

Author Comment

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

Thanks to all.
0
 

Expert Comment

by:lux_interior
Comment Utility
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

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.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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