A newbie to PHP programming, I turn to you for help.
I’m setting up a comment board for an online newspaper. To comment, the users have to register. The registration info I manage through PHP, and so far everything works except I have absolutely NO IDEA how to set up an auto-email (so that the admin gets an email stating a new signup, and the new user gets a confirmation sign-up)
I figure it has something to do with setting up some conduit between the canned CGI script provided, and the PHP.
Right now, the user fills out a Form, which sends the info to a PHP script that compiles it into email format and uploads it to my SQL database.
The PHP calls an email class ($mailer = &new Email;), which I’ve defined in the file “email.php” with the following code (lifted from the tutorial book I’m working from)
Does this look right, or is there something I can do in “email.php” to call the appropriate CGI script supported?
Thanks for any help.