Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Send Newsletter Periodically

How to do that?
0
ee_guest
Asked:
ee_guest
  • 4
  • 3
  • 2
  • +3
1 Solution
 
hongjunCommented:
0
 
kahleanCommented:
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
 
hongjunCommented:
erm...
kahlean, same url posted :0

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

hongjun
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
ee_guestAuthor Commented:
Where are the other experts?
I am trying to gather more comments from different experts before evaluating them.
0
 
kahleanCommented:
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
 
hongjunCommented:
It's okay since I know it is unintentional. I agree with you that the code is good.

hongjun
0
 
Michel SakrCommented:
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
 
ee_guestAuthor Commented:
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
 
Shane_OConnorCommented:
NT sched should work fine regardless of File system I think.
0
 
Michel SakrCommented:
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
 
ee_guestAuthor Commented:
I will try the code hongjun posted (siteexperts site) later.
0
 
ee_guestAuthor Commented:
I have moved to Win 2000 and am now using the code example hongjun suggested.

Thanks to all.
0
 
lux_interiorCommented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now