Mark Coates Posted April 23, 2019 Share Posted April 23, 2019 Hi all. I have been trying to get the email to ticket sorted on my site (all using WHMCS) and this kinda works in a fashion. You can reply to a ticket (as client) and this is all fine no errors or anything and all seems to process correctly. I even get the notification through slack which has been integrated through WHMCS for notifictions. When Log into the admin area it does not show up any tickets waiting to be seen to. I checked the logs and this says "Ticket Reply Imported Successfully" So to me all this should be good although when i go to active tickets i can still see the 3 originally opened up to test are still marked as answered although the email reply from client side is in there, so which makes me believe when the email is sent and the PIPE is detecting the email its not updating the ticket status to CUSTOMER REPLY which would then show up as a ticket requiring attention. I have attached images showing this info and any help would be great. I have also noticed when a reply has been done by the client it shows up on the ticket as a member of staff has replied also. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted April 23, 2019 Share Posted April 23, 2019 Does the ticket log show anything? There is likely a hook or some other integration for tickets that is causing replies to be set back to answered from customer-reply. 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 23, 2019 Author Share Posted April 23, 2019 Hi the is not anything added to to whmcs other than slack which just sends the notifications. Only thing that shows in the logs are that they are being imported successfully. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted April 23, 2019 Share Posted April 23, 2019 Try disabling the slack integration and see if the behavior continues. 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 24, 2019 Author Share Posted April 24, 2019 Hi @steven99 no unfortunately this is still the same 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 24, 2019 Author Share Posted April 24, 2019 Hi all! I have discovered what i was doing wrong here and im afraid to say it was MY MISTAKE Basically the test account i had for a "client test" was using the same email address as my admin user which would explain why WHMCS was thinking it was an admin doing the reply. Maybe this could be a feature add in the next update to disallow an email to be used on a client account as well as an admin account. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 24, 2019 Share Posted April 24, 2019 43 minutes ago, Mark Coates said: Basically the test account i had for a "client test" was using the same email address as my admin user which would explain why WHMCS was thinking it was an admin doing the reply. the help docs do warn against using an email address in use by an admin... https://help.whmcs.com/m/support_tools/l/679784-troubleshooting-email-piping-problems Quote When testing email piping, you must send an email from an email address that is not assigned to an admin in your WHMCS system. 1 minute ago, Mark Coates said: Maybe this could be a feature add in the next update to disallow an email to be used on a client account as well as an admin account. technically, if you want to prevent an admin's email address being used by a client, it's just a simple ClientDetailsValidation hook that checks the email address against the email addresses of those used by any admins. of course, this won't check existing clients against admins, only when they (or an admin) tries to change the client details will it validate the email address... and it wouldn't stop an admin using the same address as a client, but i'm assuming you don't have a lot of admins, so it would be a simple task to check their email addresses against the clients emails (you could use Intelligent Search for that). it's an absolute certainty that it would be quicker for you to write any solution yourself rather than wait for it to be included in a future update. clientvalid.php 1 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 25, 2019 Author Share Posted April 25, 2019 Hi @brian! How would i get the PHP file in use? Would i just copy it to the Hooks folder? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 25, 2019 Share Posted April 25, 2019 2 minutes ago, Mark Coates said: How would i get the PHP file in use? Would i just copy it to the Hooks folder? yes - it's as simple as that! 🙂 1 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 25, 2019 Author Share Posted April 25, 2019 Thanks ill give it a try now 🙂 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 25, 2019 Author Share Posted April 25, 2019 Cool Awesome 🙂 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 29, 2019 Author Share Posted April 29, 2019 I have noticed now that everything is working, when a ticket is opened it is duplicated. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 29, 2019 Share Posted April 29, 2019 5 hours ago, Mark Coates said: I have noticed now that everything is working, when a ticket is opened it is duplicated. are you saying that you think it's the hook causing the duplication ? 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted April 29, 2019 Author Share Posted April 29, 2019 to be honest im not sure but i am wondering if it is the cron job i have added is doing this incase the cron job and WHMCS is created the second post as the second one arrives around 1 minute after. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 29, 2019 Share Posted April 29, 2019 2 minutes ago, Mark Coates said: to be honest im not sure but i am wondering if it is the cron job i have added is doing this incase the cron job and WHMCS is created the second post as the second one arrives around 1 minute after. I doubt it's the hook - it should only run when a client is being added or edited... whether piping triggers it, I doubt... my thought would be the cron is morel likely, but you could always disable the hook (just rename the .php to .php9 is a quick way) and see if the duplication continues. 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted May 1, 2019 Author Share Posted May 1, 2019 Hi @brian! i have found out that not only did i have the piping cron i had the email account forwarding to the pipe also so this is where the duplicates was coming from. not sure how it worked but it did. i am now using just the POP cron using the port of 995 within WHMCS and everything seems to be working fine 🙂 Thanks again 🙂 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted May 2, 2019 Author Share Posted May 2, 2019 Sorry to bring this up but on the POP error messages i keep getting these. One or more POP3 connections failed: ----- General Enquiries <EMAIL-ADDRESS@danumhost.co.uk> Error: Connection error: Can not authenticate to POP3 server: POP3 connection broken in response I have 3 email accounts linked to this and it comes up with all 3 randomly during a normal day. I have checked all email address's and password and all are correct. 0 Quote Link to comment Share on other sites More sharing options...
Tom Wilson Posted May 6, 2019 Share Posted May 6, 2019 On 2/05/2019 at 11:52 AM, Mark Coates said: Sorry to bring this up but on the POP error messages i keep getting these. One or more POP3 connections failed: ----- General Enquiries <EMAIL-ADDRESS@danumhost.co.uk> Error: Connection error: Can not authenticate to POP3 server: POP3 connection broken in response I have 3 email accounts linked to this and it comes up with all 3 randomly during a normal day. I have checked all email address's and password and all are correct. I get this a lot too, even though the password is correct. 0 Quote Link to comment Share on other sites More sharing options...
Mark Coates Posted May 6, 2019 Author Share Posted May 6, 2019 Annoying I know over the weekend it’s not been too bad although today I have had around 15 already 😢 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 19, 2019 Share Posted May 19, 2019 On 02/05/2019 at 11:52, Mark Coates said: I have 3 email accounts linked to this and it comes up with all 3 randomly during a normal day. I think that's more one for Support if it's a bug (sorry new feature) within the core .php files. if you get your license directly from WHMCS - https://www.whmcs.com/support/ if you get your license from a reseller / host - https://www.whmcs.com/reseller-support/ 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.