Jump to content

Specific Cancellation Emails


Chad

Recommended Posts

Every product or service gets the same cancellation confirmation email should the cancellation be made. However, we require a custom email confirmation specific to a product group whereas certain subjects and email body are included that applies only to that product group. Is this possible?

For example: "Action Required" must be in the subject pertaining to the cancelled service in that specific product group plus a unique confirmation email body. I asked support about this and I got the below response. Hopefully someone here can explain in laymen terms how that would work. Never done API stuff before.

Quote

This is something that may require the EmailPreSend hook point and the SendEmail API.

https://developers.whmcs.com/hooks-reference/everything-else/#emailpresend
https://developers.whmcs.com/api-reference/sendemail/

With the EmailPreSend hook, you can detect the standard cancellation request email about to be sent and abort it, then use the API to send your custom email template with the necessary subject and body.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated