tonnybarros Posted June 16, 2016 Share Posted June 16, 2016 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); 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 16, 2016 Share Posted June 16, 2016 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 IDWhat 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) 0 Quote Link to comment Share on other sites More sharing options...
tonnybarros Posted June 17, 2016 Author Share Posted June 17, 2016 Thanks for the quick response, I was doubt about $relatedId, which ID should I put? I want to use for all products of a given product group. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 17, 2016 Share Posted June 17, 2016 you need to send single email, right? from within your function use the $params['serviceid'] this will equal the (tblhosting.id) that belong to one client 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.