Welcome Guest, Not a member yet? Register   Sign In
please help me..urgent! send mail problem
#6

[eluser]theprodigy[/eluser]
Will this user be logged in? Can you set the variable from a session variable?
Code:
$data['name'] = $this->session->userdata('name');
If not, then you will have to pull it from the database in another query.

Do you have a users model? Put a
Code:
get_user_fullname($user_id)
function in there and call that from your function to get the user's name.

What I've done before is keep my emails out of the database. I created an email library with all my pre-written emails, and passed the dynamic data needed to the library. That way, I didn't have to worry about eval()ing anything from the database or writing my own parser, just so I could pass dynamic data into it.


Messages In This Thread
please help me..urgent! send mail problem - by El Forum - 12-09-2009, 08:45 PM
please help me..urgent! send mail problem - by El Forum - 12-09-2009, 10:16 PM
please help me..urgent! send mail problem - by El Forum - 12-09-2009, 10:35 PM
please help me..urgent! send mail problem - by El Forum - 12-09-2009, 10:36 PM
please help me..urgent! send mail problem - by El Forum - 12-09-2009, 10:51 PM
please help me..urgent! send mail problem - by El Forum - 12-09-2009, 11:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB