[eluser]tpiscotti[/eluser]
Hello!
I'm currently using FreakAuth Light for user registration. My client wants the activation email to display the first name (or first and last name) in the first line of the email (the welcome line..."Welcome, Tony!" for example).
Right now it uses the username by default: "Welcome, myusername1234!"
I'm trying to find the bit of code where I can customize this.
I tried just updating the variable in the activation email from the default:
Code:
<?=$this->lang->line('FAL_welcome')?> <?=$user_name?>,
...
to
Code:
<?=$this->lang->line('FAL_welcome')?> <?=$first_name?>,
...
but this produces an error in the email that gets generated which looks like this:
Code:
Welcome, <div style="border:1px solid #990000;padding-left:20px;margin:0 0
10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Undefined variable: first_name</p>
<p>Filename: email/activation_email.php</p>
<p>Line Number: 1</p>
</div>,
Thank you for your new member registration.
...
I guess I figured I could use any of the fields being passed from the registration form, but apparently the form data that is available to use for the activation email is being defined elsewhere(?).
Can anyone point me in the right direction?
Thank you very much in advance!
- Tony