Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In ios not opening mail #176

Open
dheerajgill25 opened this issue Apr 19, 2021 · 3 comments
Open

In ios not opening mail #176

dheerajgill25 opened this issue Apr 19, 2021 · 3 comments

Comments

@dheerajgill25
Copy link

In iOS not opening mail please provide me valid configuration.
Thank you in advance

@tdinckaya
Copy link

maybe, need testing in real device.

@ghost
Copy link

ghost commented Jun 22, 2021

@dheerajgill25 This library using MF Mail composer. So for using mail in iPhone device you have to configure mail app in your device then only it will work. Please check if mail app is configured or not as below
https://support.apple.com/en-in/HT201320

@chishing96
Copy link

chishing96 commented Oct 28, 2021

works on android but error on ios, I am using real device iPhone 11 pro

expo: 42
RN: 0.63.4
react-native-mail: 6.1.1
real device: iPhone 11

  • I didnt included libRNMail.a in Link binaries with libraries in XCode because i cant find it
  const onPressReportIssue = () => {
    Mailer.mail(
      {
        subject: '',
        recipients: ['sample@gmail'],
        body: '<b>Sent from Mobile App</b>',
        isHTML: true,
      },
      (error, event) => {
        Alert.alert(
          error,
          event,
          [
            {
              text: 'Ok',
              onPress: () => console.log('OK: Email Error Response'),
            },
            {
              text: 'Cancel',
              onPress: () => console.log('CANCEL: Email Error Response'),
            },
          ],
          { cancelable: true }
        )
      }
    )
  }

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

No branches or pull requests

3 participants