Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have PHP 5 running on a hosted ISP. The ISP gives me minimal configuration options via cPanel. Is there any way to use email notification to respond to some given event? I want to send from PHP in the background. Must I specify environment stuff like POP or SMTP? My hosted ISP offers email addresses of course -- does using one of those make things easier? Now that you know how ignorant I am, do you have any general advice on approaching this?

share|improve this question
    
Could you be a bit more specific and tell us what "given event" you'd like to receive a notification about? It's hard to answer your question without understanding what you're trying to monitor. –  Nick Nov 4 '11 at 16:17
    
Merely based on what code is invoked in the PHP files. For example, a specified query against the MySQL data. –  Smandoli Nov 4 '11 at 22:15
add comment

1 Answer

up vote 1 down vote accepted

Your hosting company may have set up the environment already for you. Have a look at the PHP mail page and write a test script to send yourself an email.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.