Modules:Magenx_Helpdesk (tickets, admin, email) and Magenx_HelpdeskGraphQl (storefront API)
A support desk inside Magento. Customers open and follow tickets in the Support tab of their account. Staff answer from an agent workspace in the admin. Mail sent to a support mailbox becomes tickets and replies.
Outgoing mail uses Magento’s own mail settings (Stores > Configuration > Advanced > System > Mail Sending Settings) and any SMTP module you already run. Here you only choose the template and sender for each notification. To switch a notification off, select “Disable these emails” for its template.
Incoming mail comes through the email gateway:
IMAP only. POP3 can’t mark mail as read, so it would import the mailbox again on every run.
Needs the webklex/php-imap Composer package. Without it everything else works and the gateway reports itself unavailable.
Replies are matched to their ticket by standard mail headers, with the ticket code in the subject as a fallback.
A reply is accepted only from the ticket’s own correspondent.
A message is marked read only after it is imported. A failed run leaves it for the next run.
Attachments are stored outside the public media folder and capped in size and count.
With Allow Guest Tickets on, a logged-out visitor can open a ticket. The rest of the conversation happens by email, so guest tickets need the email gateway.
There is no guest ticket page. A ticket code can be guessed, so it is not used as a password.
The acknowledgement mail carries only the ticket code, never the text the visitor typed. This stops the form from being used to send arbitrary text to any address.
Tickets are rate-limited per email address, and the storefront form is protected by Turnstile.
When the visitor later registers and confirms their email, their earlier tickets move into their account.
Optional: webklex/php-imap - Required only for the email gateway. Pure PHP, does not need ext-imap. Without it the gateway reports itself unavailable and the rest of the module works normally.
The install seeds three statuses, three priorities and a General department. Running it again does not overwrite labels, colours or order you changed.
Dropdown. New tickets with no department, or whose department has no active agents, are assigned to this agent. Tickets for a department with agents stay unassigned and notify that department's agents. Manage agents under Customers > Help Desk > Agents.
Customer Account
Setting
Default
Scope
Notes
Show Support Section in Customer Account magenx_helpdesk/customer_account/enabled
Yes
Store view
Yes/No. Read by the storefront through the helpdeskMetadata GraphQL query.
Allow Customers to Select Priority magenx_helpdesk/customer_account/allow_priority
Yes
Store view
Yes/No.
Allow Customers to Select Department magenx_helpdesk/customer_account/allow_department
Yes
Store view
Yes/No.
Allow Customers to Link an Order magenx_helpdesk/customer_account/allow_order
Yes
Store view
Yes/No.
Guest Tickets
Lets logged-out visitors open a ticket. The rest of the conversation happens by email, so this needs the Email Gateway below to be enabled.
Setting
Default
Scope
Notes
Allow Guest Tickets magenx_helpdesk/guest/enabled
No
Store view
Yes/No. Has no effect while mailbox fetching is disabled.
Max Guest Tickets per Hour magenx_helpdesk/guest/rate_limit_per_hour
5
Store view
Text. Counted per email address, so one inbox cannot be flooded with confirmations. Bots are stopped earlier by the storefront's Turnstile check. 0 removes the cap.
Link Tickets to Unconfirmed Accounts magenx_helpdesk/guest/link_unconfirmed
No
Website
Yes/No. When a visitor registers, earlier guest and email tickets from the same address move into their account. Keep this off unless customer email confirmation is required: without it, anyone could register someone else's address and read their support history.
Contact Form
Messages sent through the stock contact form (contactUs) are recorded as tickets in the Contact Form channel, and the visitor gets the helpdesk acknowledgement email.
Setting
Default
Scope
Notes
Record Contact Form as Tickets magenx_helpdesk/contact_form/enabled
Yes
Store view
Yes/No. Signed-in customers' tickets appear in their account Support tab. Each sender is capped by Max Guest Tickets per Hour.
Department magenx_helpdesk/contact_form/department_id
empty
Store view
Dropdown. Shown when Record Contact Form as Tickets = Yes. Contact form tickets are filed here and notify its agents. Empty: routed to the Default Agent.
Yes/No. Shown when Record Contact Form as Tickets = Yes. Yes: when the ticket is recorded, the stock email to the Contacts recipient is not sent and agents are alerted by the helpdesk only. Set a Department or Default Agent first, or nobody is told. If recording fails, the stock email is sent as before.
Withdrawal Declarations (EU)
Declarations sent from the storefront withdrawal form become tickets in the Withdrawal channel. Needs the RMA module's Right of Withdrawal settings for the return side.
Setting
Default
Scope
Notes
Department magenx_helpdesk/withdrawal/department_id
empty
Store view
Dropdown. Withdrawal tickets are filed here and notify its agents. Empty: routed like any ticket without a department.
Priority magenx_helpdesk/withdrawal/priority
high
Store view
Dropdown. The refund is due within 14 days of the declaration.
Email Gateway (Incoming Mail)
Incoming mail only. Magento has no built-in way to READ a mailbox, which is what this gateway adds. Outgoing helpdesk email is not configured here — it uses Magento's own Stores > Configuration > Advanced > System > Mail Sending Settings (and any SMTP module you have installed), like every other transactional email.
Text. Default */5 * * * *. Rejected if malformed: this expression is scheduled with the whole default cron group, so a bad value would stop every other job too.
Attach Mailed-in Tickets to Matching Accounts magenx_helpdesk/gateway/link_customer
Yes
Global
Yes/No. A new ticket from an address that belongs to a registered customer shows up in that customer's account. The From header of an email is not verified, so a forged sender can place a message in someone else's account. Turn off to keep every mailed-in ticket as a guest ticket; someone who registers later still gets theirs once their email is confirmed.
Max Attachment Size (bytes) magenx_helpdesk/gateway/attachment_max_size
10485760
Global
Text. Attachments larger than this are skipped and logged. 0 removes the cap. Inbound senders are unauthenticated and files are written to var/, which is shared with the rest of the install.
Max Attachments per Message magenx_helpdesk/gateway/attachment_max_count
10
Global
Text. Attachments beyond this count are dropped and logged. 0 removes the cap.
Email Notifications (Outgoing)
Chooses WHICH template and sender identity each notification uses. HOW mail is delivered stays with Magento — see Stores > Configuration > Advanced > System > Mail Sending Settings. Select "Disable these emails" on a template to switch that notification off.
Setting
Default
Scope
Notes
Sender magenx_helpdesk/email/sender_identity
Customer Support
Store view
Dropdown.
New Ticket (Customer) magenx_helpdesk/email/new_ticket_customer
Module's default template
Store view
Dropdown.
New Ticket (Staff) magenx_helpdesk/email/new_ticket_staff
Module's default template
Store view
Dropdown.
New Reply (Customer) magenx_helpdesk/email/new_message_customer
Module's default template
Store view
Dropdown.
New Reply (Staff) magenx_helpdesk/email/new_message_staff
New Ticket, Guest or Email (Customer) magenx_helpdesk/email/new_ticket_guest
Module's default template
Store view
Dropdown. Acknowledges tickets opened by a guest or by email, whose sender address is unproven. Keep it free of anything the visitor wrote (message, subject, name), or the form becomes a way to make this store email arbitrary text to anyone.
Dropdown. The legally required confirmation of a withdrawal declaration, sent to the address typed into the form. It repeats the reference and received time; the name and items only when the order number and email matched an order.
The storefront’s account Support tab uses the customer queries and mutations below. helpdeskMetadata is public: it tells the storefront which options to show before anyone signs in.
Customer operations need a signed-in customer, and only return that customer’s own tickets.
createHelpdeskGuestTicket only submits. It returns the ticket code and nothing else.
Switching the desk off in configuration closes the API too, not only the storefront tab.
Queries
helpdeskTickets(pageSize: Int = 20, currentPage: Int = 1, sort: HelpdeskTicketsSortInput): HelpdeskTicketsOutput
List support tickets belonging to the logged-in customer. Never cached: the answer is private to the signed-in customer.
Argument
Type
Description
pageSize
Int = 20
currentPage
Int = 1
sort
HelpdeskTicketsSortInput
helpdeskTicket(code: String!): HelpdeskTicket
Get one of the logged-in customer's tickets, with its full message thread. Never cached: the answer is private to the signed-in customer.
Argument
Type
Description
code
String!
helpdeskMetadata: HelpdeskMetadata
Feature flags plus the departments, priorities and custom fields a customer may choose from when opening a ticket.