Hello,
I want to add a salutation (Mr. or Mrs. depending on the user's genre) to the email sent by the password reminder module. Any idea how I could get a php-line executed there?
Many thanks!
Hello,
I want to add a salutation (Mr. or Mrs. depending on the user's genre) to the email sent by the password reminder module. Any idea how I could get a php-line executed there?
Many thanks!
Hi Alewar, if youre talking about the Lost Password module, you don't need to execute php.
Edit the Lost Password module and use ##gender## in the message txt,
eg: Hi ##gender## ##lastname##, blah blah...
That should do it.
unfortunately ##gender## is -as one would expect- replaced with either "male" or "female", and not with "mr." or "mrs.".
it would be nice to have a tag "##salutation##".
Edit:
with the newsletters one can use the "simple tokens" to do something like this:
but it seems that the password reminder module doesn't support the full syntax of the simple tokens...Code:{if gender=="male"} Dear Mr ##lastname##, {elseif gender=="female"} Dear Mrs ##lastname##, {else} Dear Sirs, {endif}
Ah, silly me.
You should request it in the ticket system.
Bookmarks