kitivaruni Posted January 29, 2014 Share Posted January 29, 2014 I got an error message "Email Template not found" when send email Custom created Predefined Email Template by localAPI?? Here my API coding: $command = "sendemail"; $adminuser = "admin"; $values["customtype"] = "domain"; $values["customsubject"] = "Domain Overdue"; # <------ Custom Created Email Template $values["customvars"] = base64_encode ( serialize ( array 'customvars'=>'aaa', 'customvars2'=>'bbb',) ) ); $values["id"] = 1; # <------ Client Domain ID $sendemail = localAPI ($command, $values, $adminuser); 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted January 29, 2014 Share Posted January 29, 2014 Looking at the docs, it appears you have to use the following to send a predefined email template, via the internal API: $command = "sendemail"; $adminuser = "admin"; $values["messagename"] = "Hosting Account Welcome Email"; # <------ Custom Email Template $values["id"] = "1"; # <------ Client ID $results = localAPI($command,$values,$adminuser); 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.