Solved

Send Newsletter Periodically

Posted on 2001-07-15
13
237 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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
 
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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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/…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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