CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 TellAFriend Code Question

Print topic Send  topic

Author Message
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


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.