@erktrek has explained why sending email to gmail fails using this integration. I just want to mention that there is another email integration - written by @erktrek that will work for your use case.
@erktrek's integration does require an external device running sendmail (or a sendmail-compatible mailer). Most people use a Raspberry Pi; however, anything running Linux/Unix and capable of running sendmail will work just fine.