Skip to content

Allows send emails from flutter using native platform functionality.

License

Notifications You must be signed in to change notification settings

agym-co/flutter_email_sender

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: ['[email protected]'],
  cc: ['[email protected]'],
  bcc: ['[email protected]'],
  attachmentPaths: ['/path/to/attachment.zip'],
  isHTML: false,
);

await FlutterEmailSender.send(email);

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>

Getting Started

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

For help on editing plugin code, view the documentation.

About

Allows send emails from flutter using native platform functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 36.9%
  • Dart 33.0%
  • Swift 22.3%
  • Ruby 4.1%
  • Objective-C 3.7%