Notice (8): Undefined index: email [APP/Controller/ContactformsController.php, line 20]

Fatal error: Call to a member function to() on a non-object in /home/bitbar6/public_html/app/Controller/ContactformsController.php on line 21
{"success":0,"exception":{"error_no":500,"error_message":"Call to a member function to() on a non-object"}}