This topic is locked

table event email issues...

6/27/2007 5:28:05 PM
PHPRunner General questions
powersitedesign author

i have a table event setup to send out notifications when data changes or is added and for some reason we aren't getting the email notifications, i have checked my providers spam box and they aren't in there, just wondering if you could tell me where i might begin troubleshooting this. here is the event code in case you see something i might have wrong in it:
function AfterAdd()

{

// ** Send simple email ****
$email="corporate@pleth.com";

$message="a new project has been added to the pleth networks project board, please visit: http://www.pleth.net/php-intranet/ to login and view this project's details.";

$subject="Pleth Project Manager";

mail($email, $subject, $message);

}
thanks for your help in advance,
Cotton Rohrscheib, Partner

Powersite / Pleth Networks, LLC

http://www.powersitedesign.com

http://www.pleth.com

Alexey admin 6/28/2007

Cotton,
your code is perfect.
Make sure mail function works at your server.

Here is the article about setting up mail environment in PHP.

http://www.php.net/mail

powersitedesign author 6/28/2007

Okay thanks, I will have a look at that and see.
Cotton Rohrscheib, Partner

Powersite / Pleth Networks, LLC

http://www.powersitedesign.com

http://www.pleth.com