Skip to content

Implement Mailer#canSend#51

Open
martijndeh wants to merge 1 commit into
chirag04:masterfrom
martijndeh:master
Open

Implement Mailer#canSend#51
martijndeh wants to merge 1 commit into
chirag04:masterfrom
martijndeh:master

Conversation

@martijndeh
Copy link
Copy Markdown

I need a way to check if the user is able to send a mail. Please let me know if you have any feedback.

Comment thread README.md
```js
var Mailer = require('NativeModules').RNMail;

Mailer.canSend((error, canSend) => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like error in the callback is always null. Seems like outcome canSend is always true or false. maybe keep the apis Mailer.canSend(canSend => {});?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, but I wanted to stick to the error-first callback convention. I think this is more valuable than saving an argument.

What do you think?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChenSaranga
Copy link
Copy Markdown

Hey, I need this ability too, is this something that is going to be?

@chirag04
Copy link
Copy Markdown
Owner

@martijndeh can you update?

@pke
Copy link
Copy Markdown

pke commented Apr 28, 2021

@chirag04 is it possible to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants