-1

I am supposed to send an automatic e-mail through the system using PHP codeigniter on the Windows platform.

I have to schedule an email, which is automatically sent, for instance at a birthday of a person.

Is this possible?

Cheesebaron
  • 21,926
  • 13
  • 60
  • 110
Akisha
  • 113
  • 1
  • 1
  • 10
  • 1
    Yes, it is possible, however SO is not a place for tutorials / guides :) Google it, there are plenty of guides out there. – Epodax Sep 18 '15 at 08:02
  • 1
    I would personally write a php script to check the current date versus birthdays in a list then set a cron job to run the script once a day checking for birthdays and sending emails if it falls on the current date. Buts thats just me. – Joshua Nightingale Sep 18 '15 at 08:04
  • I was googling about this but never come across with a suitable one. Thanx .. :) – Akisha Sep 18 '15 at 08:04
  • Ohh thank u very much... This is really helpful for me – Akisha Sep 18 '15 at 08:05
  • @JoshuaNightingale: CRON is not an option on Windows. – DTH Sep 18 '15 at 08:34
  • Is it possible to have it without using commandline? because my project iS STILL RUNNING THROUGH xampp server – Akisha Sep 18 '15 at 08:44
  • @DTH, correct and sorry about that Cron is not an option on Windows so setting a scheduled task would be the rout to go. – Joshua Nightingale Sep 18 '15 at 21:31

1 Answers1

1

Yes It is Possible. You will need to have a script that will check for today's Bitrhday's and send mails to the users.

Then You need to schedule this script to run everyday at a fixed time. You can achive this by setting a CronJob in your system. I think you have some kind of Scheduler for Windows Platform but i have been working with UNIX so i am not sure about windows.

Also You will have to take a look at : Running CI Script from CLI

Mohan
  • 4,055
  • 7
  • 31
  • 56