Home Forums Email alerts in hooks.php notworking

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #2142
      tamil
      Participant

      After joborder creation hooks.php methods are not working.

      
       function AUIEO_SEND_HOOK_EMAIL ($record)
          {
              if($emailAddress)
              {
                  $obj=new JobOrders($site_id);
                  $obj->load($record["id"]);	 /* $obj is empty*/	
                  $obj->sendTemplateEMail("My Joborder 2", $emailAddress);
      	
              }
      	

      $obj is empty so email has been not sent.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.