title: Firebase send email function
body: <p>I have been playing around with firebase tutorials and the new functions, and trying to implement this specific example:
  <a href="https://github.com/firebase/functions-samples/tree/master/quickstarts/email-users" rel="nofollow noreferrer">https://github.com/firebase/functions-samples/tree/master/quickstarts/email-users</a></p>
  
  <p>When I fire the trigger the mail does not get sent, and I get the following error in the log console:</p>
  
  <pre><code>Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at
  535 5.7.8  https://support.google.com/mail/?p=BadCredentials 141sm3120746ioe.47 - gsmtp
      at SMTPConnection._formatError (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:557:19)
      at SMTPConnection._actionAUTHComplete (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:1248:34)
      at SMTPConnection._responseActions.push.str (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:340:26)
      at SMTPConnection._processResponse (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:706:20)
      at SMTPConnection._onData (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:509:14)
      at TLSSocket._socket.on.chunk (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:461:47)
      at emitOne (events.js:96:13)
      at TLSSocket.emit (events.js:188:7)
      at readableAddChunk (_stream_readable.js:176:18)
      at TLSSocket.Readable.push (_stream_readable.js:134:10)
  </code></pre>
  
  <p>What am I doing wrong? It does not say anthing about placing some authorizations on email account. Just the password. Should be simple.</p>