J
|
Jane 1/22/2007 |
Hi, function ViewOnLoad() { global $where,$strTableName,$conn; $str = "select * from ".$strTableName." where ".$where; $rs = db_query($str,$conn); $data = db_fetch_array($rs); $email=$data["EmailFieldName"]; $message="Hello there\nBest regards"; $subject="Sample subject"; mail($email, $subject, $message); }
|
I
|
ictaylor author 1/23/2007 |
Hi, you can do it using events. Proceed to the Events tab, select ViewOnLoad event and add your code in it. Here is a sample: where EmailFieldName is your actual field name where email is stored.
|
J
|
Jane 1/23/2007 |
Hi, |