flutter_email_sender 7.0.0 copy "flutter_email_sender: ^7.0.0" to clipboard
flutter_email_sender: ^7.0.0 copied to clipboard

Allows send emails from flutter using native platform functionality.

flutter_email_sender #

Allows send emails from flutter using native platform functionality.

In android it opens default mail app via intent.

In iOS MFMailComposeViewController is used to compose an email.

Example #

final Email email = Email(
  body: 'Email body',
  subject: 'Email subject',
  recipients: ['example@example.com'],
  cc: ['cc@example.com'],
  bcc: ['bcc@example.com'],
  attachmentPaths: ['/path/to/attachment.zip'],
  isHTML: false,
);

await FlutterEmailSender.send(email);

copied to clipboard

Android Setup #

With Android 11, package visibility is introduced that alters the ability to query installed applications and packages on a user’s device. To enable your application to get visibility into the packages you will need to add a list of queries into your AndroidManifest.xml.

<manifest package="com.mycompany.myapp">
  <queries>
    <intent>
      <action android:name="android.intent.action.SENDTO" />
      <data android:scheme="mailto" />
    </intent>
  </queries>
</manifest>
copied to clipboard

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

565
likes
150
points
88.3k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.08 - 2025.03.23

Allows send emails from flutter using native platform functionality.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_email_sender