sidlatau / flutter_email_sender

Allows send emails from flutter using native platform functionality.
Apache License 2.0
151 stars 84 forks source link

IOS Email is not sending #105

Open desmeit opened 7 months ago

desmeit commented 7 months ago
 final Email email = Email(
                              body: '<p><strong>' +
                                 "test +
                                  '</strong><p>' +
                                  '<p>' +
                                  userData!.uid! +
                                  '</p>' +
                                  '<p>' +
                                  _deviceData['system'].toString() +
                                  '</p>' +
                                  '<p>' +
                                  _deviceData['version'].toString() +
                                  '</p>' +
                                  '<p>' +
                                  _deviceData['name'].toString() +
                                  '</p>' +
                                  '<p>' +
                                  _deviceData['model'].toString() +
                                  '</p>' +
                                  '<p>' +
                                  _packageInfo.version +
                                  '</p>' +
                                  '<p>' +
                                  isSubscribed +
                                  '</p>',
                              subject: "subject",
                              recipients: ['test@example.com'],
                              isHTML: true,
                            );

                            await FlutterEmailSender.send(email);

no e-mails are sent under ios. Nothing happens. i tried with flutter_email_sender: ^6.0.1 and flutter_email_sender: ^6.0.2

flutter doctor -v

[✓] Flutter (Channel stable, 3.16.5, on macOS 14.1.2 23B92 darwin-arm64, locale de-DE) • Flutter version 3.16.5 on channel stable at /Users/xxx/development/tools/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 78666c8dc5 (vor 2 Monaten), 2023-12-19 16:14:14 -0800 • Engine revision 3f3e560236 • Dart version 3.2.3 • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/xxx/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/xxx/Library/Android/sdk • ANDROID_SDK_ROOT = /Users/xxx/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15A507 • CocoaPods version 1.14.3

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • android-studio-dir = /Applications/Android Studio.app • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.86.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.82.0

[✓] Connected device (3 available) • iPhone (mobile) • 00008130-000A49440230001C • ios • iOS 17.2.1 21C66 • macOS (desktop) • macos • darwin-arm64 • macOS 14.1.2 23B92 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 122.0.6261.69 ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources • All expected network resources are available.

• No issues found!