/
Empty user info in "USER.VALIDATE" e-mail event [5.2.1]
Empty user info in "USER.VALIDATE" e-mail event [5.2.1]
After user registration either of 2 e-mails can be sent out:
- USER.ADD - for case, when user has entered password on registration form
- USER.VALIDATE - for case, when automatic password generation during registration is enabled
Problem with later e-mail is that it uses <inp2:u_Field .../> tags for displaying user information while it should be using <inp2:u.register_Field .../> tags instead (because that's the object used on registration form). By the way the USER.ADD e-mail template is using <inp2:u.register_Field .../> tags and that's why user info is displayed properly there.
Solution
- in the
UsersItem::sendEmails
method provide current object PrefixSpecial in the "PrefixSpecial" e-mail parameter - in the USER.ADD, USER.ADD.PENDING, USER.VALIDATE e-mail templates use just <inp2:Field .../> tags (omit "u_" or "u.register_" part) for user info display