Author Topic: Leave Message Email  (Read 6609 times)

0 Members and 1 Guest are viewing this topic.

rhavinga

  • Full Member
  • ***
  • Posts: 6
Leave Message Email
« on: June 20, 2011, 05:18:49 AM »
Hi,

I have been trying to work out how the variables within the following message get populated for leavemail.body

You have a message from {0}:

{2}

His email: {1}
{3}
---
Yours site messenger

The reason why I ask, is I would like to include the hidden referrer form field within leavemessage.tpl. From looking at leavemessage.php its a defined variable but I cannot quite grasp how to include it within the message.

Could some one please help me?

Thanks in advance


rhavinga

  • Full Member
  • ***
  • Posts: 6
Re: Leave Message Email
« Reply #1 on: June 20, 2011, 06:27:20 AM »
Not to worry. I had been having a funny five minutes.

For those of you if you have a similar issue, the way I resolved this issue was to define a new variable

$referrer = getparam('referrer');

within leavemessage.php

and made sure I included it within $body

My issue was that I had renamed $referrer within leavemessage.tpl earlier on when I was testing something else.