Forums Forums Community Discussion Email alerts in hooks.php notworking

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  tamilamuthan15 1 year, 9 months ago.

  • Author
    Posts
  • #2142

    itsmesri
    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.

  • #2143

    tamilamuthan15
    Keymaster

    itsmesri,

    use,
    include_once(“lib/JobOrders.php”);

    And let me know if you face any further issue.

    with regards,
    R. Tamil Amuthan
    Software Consultant
    Auieo Software Private Limited

  • #2144

    itsmesri
    Participant

    I debugged more into. I found email_template table does not have Title called “My Joborder 2”. Can you please share all mysql data script (insert) for that table.

    So I will update.

  • #2148

    tamilamuthan15
    Keymaster

    itsmesri,

    You can create the template from User Interface

    Please go through http://candidats.auieo.com/courses/candidats-2-0-0/email-template

    with regards,
    R. Tamil Amuthan
    Software Consultant
    Auieo Software Private Limited

You must be logged in to reply to this topic.