Hello,
I am a newbie and do not know much about programming. I need to send an email to the customer after paying the invoice. I tried to use the hooks but due to less knowledge was not able to get it through.
Below is my code and email template which I want to send mail is "Invoice Paid Feedback Mail"
<?php
function hook_InvoicePaid($vars)
{
$command = "SendEmail";
$adminuser = "admin";
$values = array( 'messagename' => 'Invoice Paid Feedback Mail',);
$results = localAPI($command,$values,$adminuser);
}
add_hook("InvoicePaid",1,"hook_InvoicePaid");
?>
Please help me in achieving this.
Thanks in advance.
AKA