user2160110
user2160110

Reputation:

Sending an automatic email periodically in LAMP

I have Linux(Ubuntu) server with MySQL database.

I stored
a. notification date
b. emails (multiple email accounts)
c. client etc
in a table.

I would like to send an automatic email to each client 30 days before the notification date. What is the best way to do that?

I have checked several thread over stackoverflow.com and some other tutorials over the internet. I would like to know the steps to achieve this.

Note:
1. Almost same question asked by @Aan in stackoverflow.com, question: [ Sending an automatic email periodically ]. He asked for C#
2. I learned about crontab yesterday. But, I can't understand the procedure(steps) properly.
3. I don't have any cPanel or webmin to control the cron table. So, I need the shell codes.

Upvotes: 1

Views: 1101

Answers (1)

SoftwareAndOutsourcing
SoftwareAndOutsourcing

Reputation: 140

The best way is using cron:

Upvotes: 3

Related Questions