in reply to Re^2: mail with users names
in thread mail with users names

"i tried to debug..."

How? Genuinely curious, because you don't seem to grasp the fundamentals of what you've written. Tutorials->Debugging and Optimization->Basic debugging checklist, among others.