Jump to content

How to send an email after logging


Recommended Posts

Personally I have a module that generates a log after an action.

Everything works perfetamente.

 

But how can I send an email (created in whmcs templates e-mail) after this log?

 

Namely after which this line:

 

logModuleCall($module,$action,$requeststring,$responsedata,$processeddata,$replacevars);

Link to comment
Share on other sites

this is how http://docs.whmcs.com/Internal_Functions#Email_Templates

 

- - - Updated - - -

 

$relatedId is different based on which group your email templates is in

 

Related ID

What you must provide for the Related ID depends upon the type of email being sent. Possible options include:

General Email Type = Client ID (tblclients.id)

Product Email Type = Service ID (tblhosting.id)

Domain Email Type = Domain ID (tbldomains.id)

Invoice Email Type = Invoice ID (tblinvoices.id)

Support Email Type = Ticket ID (tbltickets.id)

Affiliate Email Type = Affiliate ID (tblaffiliates.id)

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