gmail function

  1. @Deprecated('Favor gmailUserXoauth2 as username/password is considered a Less-Secure-Apps')
SmtpServer gmail(
  1. String username,
  2. String password
)

Send through gmail with username / password authentication.

WARNING Authentication with username / password is a Less-Secure-App feature, which has been scheduled for deprecation once.

Implementation

@Deprecated(
  'Favor gmailUserXoauth2 as username/password is considered a Less-Secure-Apps',
)
SmtpServer gmail(String username, String password) =>
    SmtpServer('smtp.gmail.com', username: username, password: password);