Quote:
Originally Posted by Hellcat
{name} is replaced by the name of the user that has sent you the original PM, or in other terms, with the name of the reciever of the auto-reply.
Ex:
UserA sends UserB a PM, UserB has autoreply enabled -> {name} = UserA
At least that's how it's supposed to be, anything else I will check and fix, since it's a bug then. 
|
Currently in the code {name} is being replaced with the value of $recipient, which is the name of one of the recipients in the $recipients array. So in your example, currently {name} would be replaced with UserB as UserB is one of the recipients of UserA's PM, and so is the value in the $recipients array. {name} needs to be replaced with $vbulletin->userinfo['username'] (the username of the person who would receive the auto-reply, who is the currently logged in user sending the PM which triggers the auto-reply).