Hi...
I want to send a mail automatically using cron job. Till i searched about that, there is only how to set the time and path of the file in cron folder. But i want to know about how it will run?
gurusubramaniam
0
Newbie Poster
Recommended Answers
Jump to PostThe execution is automatic, you need to write also the command path. for example:
30 * * * * /usr/bin/php /srv/cron/mail.php
Otherwise add
#!/usr/bin/php
at the top of your script and make the file executable:#!/usr/bin/php <?php // . . . echo …
All 3 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
gurusubramaniam
0
Newbie Poster
cereal
1,524
Nearly a Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.