Results 1 to 4 of 4

Thread: PHP in password reminder's message

  1. #1
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default PHP in password reminder's message

    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!

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: PHP in password reminder's message

    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.

  3. #3
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default Re: PHP in password reminder's message

    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:

    Code:
    {if gender=="male"}
    Dear Mr ##lastname##,
    {elseif gender=="female"}
    Dear Mrs ##lastname##,
    {else}
    Dear Sirs,
    {endif}
    but it seems that the password reminder module doesn't support the full syntax of the simple tokens...

  4. #4
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: PHP in password reminder's message

    Ah, silly me.
    You should request it in the ticket system.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •