This topic is locked

After Add (events)

5/28/2008 8:13:13 PM
PHPRunner General questions
N
Nelson author

Greetings!
I have these lines of codes to send 'after record added' email,
But I can't figure it out how to send specific fields like 'password fild' & 'username field'only

,To the users
My codes are as follow:

-------------------------------------------------
{

global $conn;
//admin email

$email=$values["E-mail"];
//message

$subject="New Record";
$message="Thank you for your add.

:\r\n";

$message.="Your add is here: http://www.mysite.com/_Electro_view.php?ed...keys=$keys["UserID"];

$message.="You can can log on by using your password & username below";

$message.="username :".$keys=$keys["Username"];

$message.="Password :".$keys=$keys["Password"];
foreach($values as $field=>$value)

$message.= $field." : ".$value."\r\n";
mail($email, $subject, $message);
return true;

}

------------------------------------------------------

The problem is I want to show the user the link of the add and his/her

user/pass word,

But I am not!

And I am sending all the text in the add(tel,.name.....etc), which I don't want to do!
Where do I go wrong!

Thanks!

J
Jane 5/29/2008

Hi,
try to use this code:

global $conn;
//admin email

$email=$values["E-mail"];
//message

$subject="New Record";
$message="Thank you for your add. :\r\n";

$message.="Your add is here: http://www.mysite.com/_Electro_view.php?editid1=".$keys["UserID"];;

$message.="You can can log on by using your password & username below"."\r\n";

$message.="username :".$values["Username"]."\r\n";

$message.="Password :".$values["Password"]."\r\n";
mail($email, $subject, $message);
return true;
N
Nelson author 5/29/2008

Greetings Jane!
Now the mail system is working properly!
Thanks alot, have a good day!
Nelson