CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 CCs&PHP and send mail?

Print topic Send  topic

Author Message
Brian
Posted: 08/02/2002, 5:29 AM

i have this code but it doesn't match could someone tells; me what wrong with
any support will be a big help
<?php
//BindEvents Method @1-C8A9C6A3
function BindEvents()
{
global $members;
$members->Insert->CCSEvents["OnClick"] = "members_Insert_OnClick";
}
//End BindEvents Method

function members_Insert_OnClick() { //members_Insert_OnClick @5-35949D28

//Send Email @7-59B11C0D
global $members;
global $username;
$dbinternet = new clsDBdoctorama;
$word = CCGetSession("member_id);
$to = CCDLookUp("email", "members", "member_id='$word'", $dbinternet);
$subject = "Hello";
$message = "here are your informations";
$from = "Doctorama";
$additional_headers = "From: $from\nReply-To: $from";
mail ($to, $subject, $message, $additional_headers);

}


?>
Nicole
Posted: 08/05/2002, 5:44 AM

Brian,
how exactly the code doesn't work?
Brian
Posted: 08/06/2002, 6:08 AM

I always got parse error can not instantiate non existent class dbinterenet
why
Nicole
Posted: 08/07/2002, 4:30 AM

Brian,
please make sure that you haven't created "internet" connection in this project.
Try to use another name while creating new connection.
Brian
Posted: 08/07/2002, 5:18 AM

Nicole
I got it to work, I forget " after member_id. Now I want to be explained how to send this mail, I explain if the member looses his login parameters I wan automatically this informations to be send by doing nothing, I want to automaticate this operation how to do?
any support

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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