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!