언어 설정

Menu
Sites
Language
Always got EMAILS_ERROR_PERMISSION_DENIED error when try to send email by Native app

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

Responses

2 댓글
colin Rao

add the privilege to the manifest and try again.

<privilege>http://tizen.org/privilege/email</privilege>

Ye Chen

It works! Thank you so much!