Frank S.
|
| Posted: 03/19/2002, 5:53 AM |
|
Hi all,
Is it possible to use the "Before Insert" mail code from this example with a
standard db insert into a table? I have an insert, update, delete, page that
I would like to send an email alert from when the button is clicked.
PHP w/templates, MySQL.
Thanks,
Frank
|
|
|
 |
Glenn Holden
|
| Posted: 03/19/2002, 7:00 AM |
|
I copied this from my PHP manual. Downloadable at Php.net
Sample of a basic send mail construct: Use this _anywhere you want_ to
generate an e-mail. This is a plain text version. If you want to generate
a 'fancy' html version, its in the manual too.
mail("nobody@example.com", "the subject", $message,
"From: webmaster@$SERVER_NAME\r\n"
."Reply-To: webmaster@$SERVER_NAME\r\n"
."X-Mailer: PHP/" . phpversion());
Does this help?
"Frank S." <fsurget@auuooh.com> wrote in message
news:a77ftj$8q9$1@news.codecharge.com...
> Hi all,
> Is it possible to use the "Before Insert" mail code from this example with
a
> standard db insert into a table? I have an insert, update, delete, page
that
> I would like to send an email alert from when the button is clicked.
> PHP w/templates, MySQL.
> Thanks,
> Frank
>
>
|
|
|
 |
Frank S.
|
| Posted: 03/19/2002, 7:09 AM |
|
Thanks, Glenn.
I read that too. I guess my real question is is how to set it up in the
"Event - After Insert", maybe?
Frank
|
|
|
 |
Frank S.
|
| Posted: 03/19/2002, 7:18 AM |
|
The after insert/update worked.
Thanks,
Frank
|
|
|
 |
|