Also check this:
- OpenSSL should be configured on your production server
- If you want to use Gmail as email relay, you will need to have access for less secure apps enabled in your Google account for this to work: support article.
Source: http://book.cakephp.org/3.0/en/core-libraries/email.html#configuring-transports