I want to send email in background.
Im using example from https://pub.dev/packages/flutter_email_sender
final Email email = Email(
body: 'Email body',
subject: 'Email subject',
recipients: ['[email protected]'],
isHTML: false,
);
await FlutterEmailSender.send(email);
But letter does'n sends. It only creates on screen. What should i do to send it without user's actions.
CodePudding user response:
You can't send email without user agreement because it is not safety (if you can do it anybody can send spam messages to other users by email). This plugin just opens default email app on device.