0

I have a PHP code that send e-mails and I have a html page that contains a button to run the PHP script with post method. Is there a way to run this script without recourse to the html page every time i want to send the e-mails?

Naourass Derouichi
  • 773
  • 3
  • 12
  • 38

2 Answers2

1

why don't you just call the php file or php function ?

Restie
  • 53
  • 7
1

If you're on Linux you can use cron.

Neil Girardi
  • 4,533
  • 1
  • 28
  • 45
  • I'm hosting my files in a hosting company server. I have only Cpanel. – Naourass Derouichi Nov 22 '13 at 03:05
  • You may need to upgrade your hosting account to one with access to SSH or a more feature-rich admin panel. Contact your company's customer service and ask them if they offer a package that will allow you to set up cron jobs. If they do not you might want to look into switching hosting companies. – Neil Girardi Nov 22 '13 at 03:18