View Full Version : Phone number for new ticket alert emails
soleprop08
03-10-2008, 03:13 PM
I just started noticing that new ticket alert emails have %phone for the phone number. Any reason why this would start happening out of the blue?
I haven't manually edited anything, this is a brand new install
Thanks
Are you saying that you first got alerts without the phonenumber and now suddenly with them? Or did you first got the actual phonenumber and now %phone instead?
Take a look in the Admin panel under Email Templates and see if you can find anything there.
I assume you are using RC3?
HarvMan
04-08-2008, 09:04 AM
Hi,
I am also experiencing the same problem where %phone appears, rather than the actual phone number. Installed RC4 yesterday. Checked email templates, all looks good.
Any suggestions.
Hi,
I am also experiencing the same problem where %phone appears, rather than the actual phone number. Installed RC4 yesterday. Checked email templates, all looks good.
Any suggestions.
Did you enter the %phone yourself in the template?
Because this is not replaced normally. You will have to change the code. I can take a look if you want.
If you have added %phone to your "New Ticket Alert" then you will need to change the file ./include/class.ticket.php in order for this to work.
You will need to add the following line around line 990:
$body = str_replace("%phone", $ticket->getPhone(),$body);
It's near the line:
//If enabled...send alert to staff (New Ticket Alert)
a little bit below here there are some $body = str_replace() lines, just add the above one between them.
Off course this is only for the New Ticket Alert.
HarvMan
04-08-2008, 09:37 AM
Yes, I did.
Appreciate your help. I suspect class.email.php will need to be modified.
Thanks!
Yes, I did.
Appreciate your help. I suspect class.email.php will need to be modified.
Thanks!
No, class.ticket.php. You probably did not see my last post before you added your reply :)
HarvMan
04-08-2008, 11:16 AM
OK, that works just fine!
Thanks for your help.