cancel
Showing results for 
Search instead for 
Did you mean: 

email ticket event

Former Member
0 Kudos

Hello Experts, I want to send an email to CS Agents every time a ticket is been created and associated with that agent, I found in this link, how to configure that ticket event functionality

https://help.hybris.com/6.2.0/hcd/8b8c53db86691014a23b9ee0eb2366fe.html

,but regardless I follow the steps, no email is sent after a ticket is created and assigned to the CS Agent, have you tested this functionality. Let me know if I'm missing any step.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

By default, ticket updates triggers email sending, and hybris is trying to send email to .getAssignedAgent().getDefaultPaymentAddress().getEmail(). Just override behavior in getTo() method in AgentTicketContext class

Former Member
0 Kudos

Hi IVO

I am not quite sure but just an idea.

do you configure a mail server in config/local.properties ? Here is an sample for gmail SMTP server :

 mail.from=cuppy-no-reply@hybris.de
 mail.replyto=cuppy-no-reply@hybris.de
 mail.smtp.server=smtp.gmail.com
 mail.smtp.port=587
 mail.smtp.user=YOUR_GMAIL_ACCOUNT
 mail.smtp.password=YOUR_GMAIL_PASSWORD
 mail.smtp.starttls.enable=true

Please also update here if you find anything.