Got EMAILS_ERROR_PERMISSION_DENIED when try to send email by Native application

Got EMAILS_ERROR_PERMISSION_DENIED when try to send email by Native application

BY 28 Jul 2015 Native Application Development

When I try to use:

email_h msg;
    int error_code = EMAILS_ERROR_NONE;
    error_code = email_create_message(&msg);

Create EMAIL, I always got EMAILS_ERROR_PERMISSION_DENIED error.

I see this:

  1. To build your application with the Email API, package dependencies and the build option must be configured:

    1. Add the below line to the spec file.
      BuildRequires:capi-messaging-email
    2. Add capi-messaging-email to pkg_check_modules in the CMakeList.txt file

Are they will generate this error if missing them?

If so, I cannot find spec file and CMakeList file

Written by