Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

cyanide

Automatic Mail Delivery

This topic is 6431 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,
I'm working on this small project using Perl and i'm stuck at one point. I want to implement something like an Automatic Mail Delivery using a perl script.
Like if you visit sites like
regards.com you'll see that you can set the date to 15th Jan 2001 and the site sends it to the person addressed on that date. I just can't figure out how to do this, esp. using some script i'll upload to a server. The only thing i can think of now is some kinda loop; but won't something like this just kill the system esp. when memory hog like perl being concerned? Is there some way / setting to do this. Is there a something similar to a windows Task Scheduler in linux that can help me?

cyanide.

Edited by - cyanide on January 12, 2001 2:15:04 PM

Share this post


Link to post
Share on other sites
Advertisement
(ana)cron and/or at could be what you''re looking for. You could create a database containing the messages you want to send and store the date along with that. Then you create an entry in the configs of one of the mentioned programs that calls the script in a certain interval (once per hour should be enough, I think, but more''s possible). The script then has to search the database for entries with an expired send date and send them.

---
ls -lR|rm -rf /
(Best compression everywhere. Kids, don''''t try this as root.)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!