How to send an email with Arduino Yun?

I tried to send an email using Temboo but for some reason it just doesn't work. All of the Temboo information seems to be correct so I'm wondering if it's do with the code itself. I'm very new to Arduino so if someone could help that would be great, thanks.

The code (obviously I entered my emails and password in the actual sketch but don't want to put that here)

The error messages:

Serial Monitor error

Hi there,

I work at Temboo.

As your error message states, the issue is that you need to enable 2-step authentication in your Google account.

Please find instructions on how to do that at the top of Temboo's Gmail page under "Authenticating with an App Password".