Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating an e-mail reminder system

Explorer ,
Apr 07, 2011 Apr 07, 2011

I need to build a system/file to send e-mail reminders from the web server to clients when their payment date is near. I aim to use PHP/MySQL on either Hostmonster or GoDaddy, if possible, to accomplish this.

My question is how do I go about programming something that will automatically work from the host web server. I only need it to activate once a day and send e-mail reminders to anyone who needs to be reminded.

Thanks.

TOPICS
Server side applications
635
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Apr 07, 2011 Apr 07, 2011
Then use cron on your host to execute the script daily.

Um... that will automatically run. Google search of cron should give you more information regarding the process.

Translate
Guest
Apr 07, 2011 Apr 07, 2011

Assuming you have rudimentary knowledge of programming and MySQL, simply add column in database for order date, then run a query to SELECT whatever FROM table WHERE order_date < NOW() - INTERVAL 1 MONTH

Change interval to whatever you want. Then After the query is run use the mail() function to send the mail. Pretty straight forward programming going on here. Then use cron on your host to execute the script daily.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 07, 2011 Apr 07, 2011

I'm not sure if this is a requirement of the OP, but will that automatically run or does it have to be manually run from a form submit or something?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 07, 2011 Apr 07, 2011
Then use cron on your host to execute the script daily.

Um... that will automatically run. Google search of cron should give you more information regarding the process.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 07, 2011 Apr 07, 2011
LATEST

I used to think running scripts on the server was some mysterious process, but thanks for clearing it up! You really saved me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines