gmail function

SmtpServer gmail(
  1. String username,
  2. String password
)

Send through gmail with username / password authentication.

As username/password only works if you use 2-factor authentication and create a password in the "app-password" screen.

Implementation

SmtpServer gmail(String username, String password) =>
    SmtpServer('smtp.gmail.com', username: username, password: password);