954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can a php script send email after 3 days after submitting an order.

I am working on a project in which i need to send emails after 3 days of adding projects .is it possible using php?

daniel36
Light Poster
48 posts since Nov 2011
Reputation Points: 5
Solved Threads: 2
 

You can make a script that does that in PHP, and use a scheduler to run it on a daily basis.

pritaeas
Posting Expert
Moderator
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 
You can make a script that does that in PHP, and use a scheduler to run it on a daily basis.


how it is possible?

daniel36
Light Poster
48 posts since Nov 2011
Reputation Points: 5
Solved Threads: 2
 

It can but you have to think of algorithms and the conditions

huongviet
Newbie Poster
3 posts since Dec 2011
Reputation Points: 10
Solved Threads: 1
 

Place the info you want to send in the Database. and date you want to send it on.

In Linux you have a cron, which you can schedual to run every minute. Write a code that checks if there is something in the Db so send, if so send it and updates the Db that this mail has been sent

roninio
Newbie Poster
2 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 

I would use cron jobs to run my scripts. You would need to put condition in scripts based on the $date + 3 days to send notification.

s0bigg
Newbie Poster
23 posts since Aug 2011
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: