Languages

Menu
Sites
Language
Got EMAILS_ERROR_PERMISSION_DENIED when try to send email by Native application

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 Replies
daniel kim

Hi,

It seems that you missed to add this privilege.

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

Regards

Palitsyna

Hello,

as daniel kim said, you' should add the email privilege in your manifest.xml file.

And just FYI, the full list of privileges can be found here: 

https://www.tizen.org/privilege?langredirect=1