Problem sending email message with HTML


#1

I can’t seem to post what I need to… I am trying to include an html/css based email, and I keep getting the error below. I’ve verified that the JSON I am using is valid.

Here is my JSON that I am posting (I have to put it in Pastebin because it my whole message gets truncated otherwise):
http://pastebin.com/XkVMbRA6

{“error”:{“context”:null,“message”:“No valid data in request.”,“code”:400,“trace”:[“0 [internal function]: DreamFactory\Core\Services\Email\BaseService->handlePOST()”,“1 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(267): call_user_func(Array)”,“2 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(173): DreamFactory\Core\Components\RestHandler->processRequest()”,“3 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(65): DreamFactory\Core\Components\RestHandler->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), NULL)”,“4 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Utility/ServiceHandler.php(57): DreamFactory\Core\Services\BaseRestService->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), NULL)”,“5 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17669): DreamFactory\Core\Utility\ServiceHandler::processRequest(‘v2’, ‘seswerk’, NULL)”,“6 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17645): DreamFactory\Http\Controllers\RestController->handleService(‘v2’, ‘seswerk’, NULL)”,“7 [internal function]: DreamFactory\Http\Controllers\RestController->handlePOST(‘v2’, ‘seswerk’)”,“8 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8873): call_user_func_array(Array, Array)”,“9 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8942): Illuminate\Routing\Controller->callAction(‘handlePOST’, Array)”,“10 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8922): Illuminate\Routing\ControllerDispatcher->call(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), ‘handlePOST’)”,“11 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“12 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9593): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“13 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17817): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“14 [internal function]: DreamFactory\Http\Middleware\AccessCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,“15 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“16 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“17 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9575): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“18 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8923): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,“19 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8908): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘handlePOST’)”,“20 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7862): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘DreamFactory\\Ht…’, ‘handlePOST’)”,“21 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7833): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))”,“22 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7486): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))”,“23 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“24 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9593): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“25 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“26 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9575): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“27 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7487): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,“28 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7475): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))”,“29 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7460): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))”,“30 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2307): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))”,“31 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))”,“32 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9593): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“33 /opt/dreamfactory/apps/dreamfactory/htdocs/app/Http/Middleware/AuthCheck.php(170): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“34 [internal function]: DreamFactory\Http\Middleware\AuthCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,“35 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“36 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“37 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))”,“38 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“39 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17909): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“40 [internal function]: DreamFactory\Http\Middleware\FirstUserCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,“41 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“42 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12961): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“43 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))”,“44 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“45 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(11555): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“46 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))”,“47 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“48 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12698): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“49 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))”,“50 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“51 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12635): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“52 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))”,“53 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“54 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“55 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))”,“56 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)”,“57 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“58 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9575): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“59 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2254): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,“60 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2237): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))”,“61 /opt/dreamfactory/apps/dreamfactory/htdocs/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))”,“62 {main}”]}}