how to create cron job in core php | how to send automatic email in php | shinerweb

Shinerweb
Shinerweb
31.4 هزار بار بازدید - 7 سال پیش - When you need automatically send
When you need automatically send mail then prefer this video. This video is most useful for send newsletter or subscriber mail send.

Step 1 : Create cron.php file which is automatically call when your cron job execute

I simply create cron.php file for send mail okay

Core php code download : https://drive.google.com/file/d/1QDuc...

Laravel code download : https://drive.google.com/file/d/1W3AL...


Step 2 : Check your server time (This is most useful because your cron command always run on your hosting provider time)

Let’s check server time first  

https://check-host.net/

okay Server time and my pc time different but you must used server time okay



Step 3 : Goto cpanel dashboard and find cron job and add below cron command

Now I create one command which is run with my own set time

Okay 07:38 on my script run

There is 07:36 and we set our script automatically run on 07:38 okay now wait for 07:38 and our script automatically run by cron job command


/usr/local/bin/php /home/user_name/public_html/your_website_name/cron.php

(Note : there is angel bracket not allow so please write last portion of command from video)

Must be remember user_name is your hosting username
_website_name/cron.php : it means your script file path where your email send code are there

Subscribe our channel  : shinerweb

Like our facebook page : Facebook: shinerweb

Like our twitter page : Twitter: shiner_web

website : www.shinerweb.com

WhatsApp Mobile no : +91 72290 55138

Email : [email protected]

#CronJob #AutomaticEmailSend #Shinerweb
7 سال پیش در تاریخ 1396/07/28 منتشر شده است.
31,496 بـار بازدید شده
... بیشتر