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:
-
To build your application with the Email API, package dependencies and the build option must be configured:
- Add the below line to the spec file.
BuildRequires:capi-messaging-email
- Add
capi-messaging-email
topkg_check_modules
in theCMakeList.txt
file
- Add the below line to the spec file.
Are they will generate this error if missing them?
If so, I cannot find spec file and CMakeList file