Hi,
I need an urgent help! I have to change the user creation email template. I found the usercreated.vm file but when I opened, I found this content:
$i18n.getText("template.user.created.createdaccount") $baseurl $i18n.getText("template.user.created.text.line1") $i18n.getText("template.user.created.text.line2") $i18n.getText("template.user.created.passwordchanged") ${baseurl}/secure/ResetPassword!default.jspa?os_username=$velocityhelper.urlencode($user.name)&token=$params.get("password.token") $i18n.getText("template.user.created.lastshowlong", $params.get("password.hours")) ${baseurl}/secure/ForgotLoginDetails.jspa?username=$velocityhelper.urlencode($user.name) #parse("templates/email/text/includes/userdetails.vm") $i18n.getText("template.user.initiatedby", $initiatingUser.fullName, $initiatingUser.email) #parse("templates/email/text/includes/footer.vm")
Where can I add the constant text into this??? For instance: "Please enter after the first login..."
Can you please help?
Thanks in advance!
Rumi
That's a velocity file. You can actually just whack your static text straight into it, once you know where it's needed.
Think of velocity as a set of instructions for creating a block of text. As the server reads it, it does three things:
That's a completely non-technical and structurally inaccurate way to describe it. But it does actually describe what comes out.
Try belting in something like "Mr Flibble says 'Time to die'" on the second line - you'll see that come out, word-for-word on the second line of every email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.