Email is one of the oldest message sending technique present today. The email was created in 1972 by Ray Tomlinson. So now you know a little bit about the history of the email, and if you want to know more about the history of the email please refer to this link.
Now let’s talk about how to send email using flutter. For this, we need an external dart package called mailer.
Install the mailer package
- First, add the following line to the pubspec.yaml file in your flutter application. (The version may change, at the time you check this article)
- After that you must install the package, just write the following code in your command line (for this to work you must have set an environmental variable for flutter). But keep in mind for some code editors like VS Code, this line will be automatically completed, therefore it would be better to check the documentation for your code editor to learn more about that.