Automatically e-mail in PHP?

Asked

Viewed 898 times

0

I have a website where you have a database, and in the same database, there’s a part where you have some dates, some of them that will still happen. What I wanted was that when each date of each row of the Database was reached, an email was sent to all registered users on the website.

What I wanted to know was how to do this email automatically. Coming up on that day, and emails were sent.

Work with PHP and Mysql. Help with this?

  • 1

    vc needs to schedule your . php in cron(linux) or task scheduler(windows). http://answall.com/questions/12793/como-faco-para-executar-o-cron-jobs-no-php

  • 2
  • @you should so as an answer so that everyone can know how it is done. And to avoid repeated responses.

  • Could you specify which OS (Linux or Windows) you use? If it’s Linux I think your question is a duplicate of the links @Lost showed.

1 answer

3

Suppose you’re using Linux: Schedule a daily task on cron. Make this daily task run a PHP script that connects to your banks and performs the task you want - in this case, send emails.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.