Please note that the mails must be authenticated via DKIM or SPF and that you have to register with Google. Without registering, it just works when you send the email to yourself.
You can find more information here: https://developers.google.com/gmail/actions/registering-with-google