Solved Ticket auto responders war
-
Hey Guys,
I'm receiving automatic ticket creations in a loop cycle due to an auto responder. Any idea how I can disable that?
-
@SeditioLTD You can made maybe a workflow to not create ticket if contain specific strings or you can insert the customer email in spam if you don't need ticket from this email address. Can be this suitable for you?
-
You can also add this (email or domain) in blacklist block under spam setting also.
Check this: https://prnt.sc/10h1ukr
Or You can also enable a auto-reply email check in code for stop such tickets in future as well in processMail function.
-
@Sanjeev for avoid spam is better never put in a forum email address
this is why i never mentioned the full email address
-
@Sanjeev said in Ticket auto responders war:
You can also add this email (support@rocketchat.zohodesk.com or zohodesk.com) in blacklist block under spam setting also.
Check this: https://prnt.sc/10h1ukr
Or You can also enable a auto-reply email check in code for stop such tickets in future as well in processMail function.
Thanks mate, I've added it to the blacklist but ofcourse it's not ideal solution. How would the enable check for auto reply work actually?
-
Removed email and updated text
-
Locate path in your project:
vendor/uvdesk/mailbox-component/Services/MailboxService.phpopen MailboxService.php and add some line of code here which we are writing below.
$autoReplyEmail = $parser->getHeader('auto-submitted'); if ($autoReplyEmail && $autoReplyEmail == "auto-generated" ) { return; }
But above code will block all auto generated emails and will not create a ticket if auto-submitted header with value auto-generated exist with your mail row content.
You can add below conditions for stopping such auto emails from a particular domain as well by adding below code.
Example - for zendesk and zohodesk$autoReplyEmail = $this->Parser->getHeader('auto-submitted'); if ($autoReplyEmail && $autoReplyEmail == "auto-generated") { $implodeMessageId = explode('@', $mailData['referenceIds']); if ($implodeMessageId[1] == 'desk-mailer.zohodesk.com>' || $implodeMessageId[1] == 'zendesk.com>') { return; } }