Automatic email notification

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
robertngo
Forum Newbie
Posts: 2
Joined: Tue Mar 30, 2004 1:45 am

Automatic email notification

Post by robertngo »

Hi,

I am currently developing a ecommerce site that sell trovel packages for my final year project. i want the system to automatically sent email alert to customer to make payment before the deadline. How can i do this in php.

another problem is how to send password in plain text to user that forgot their password. I encrupt password in mysql with password() function.

Thanks & Regards

Robert
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Re: Automatic email notification

Post by twigletmac »

robertngo wrote:I am currently developing a ecommerce site that sell trovel packages for my final year project. i want the system to automatically sent email alert to customer to make payment before the deadline. How can i do this in php.
You need to use automation on the server, if you are using a *nix system you would probably use a cronjob and on a Windows server set the task in the task scheduler.
robertngo wrote:another problem is how to send password in plain text to user that forgot their password. I encrupt password in mysql with password() function.
You can't. The password is being stored as a one-way hash, it is not encrypted and cannot therefore be decrypted. You also shouldn't be using the PASSWORD() function as this is intended for MySQL's user tables only, MD5() would be a better choice.

Mac
robertngo
Forum Newbie
Posts: 2
Joined: Tue Mar 30, 2004 1:45 am

Re: Automatic email notification

Post by robertngo »

twigletmac wrote:You need to use automation on the server, if you are using a *nix system you would probably use a cronjob and on a Windows server set the task in the task scheduler.
how do automate a php script in xppro with apache?

Thanks & Regards

Robert
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

You can make a batch file that calls php.exe that calls your php script. Then add the batch file to your Sheduled Tasks. .. just a thought.
Post Reply