How to access smtp.gmail.com or other to send email

Hello,

Anyone can help me how to data sent to our Gmail account using Arduino and ESP8266(temperature and humidity) could u please send an anyone a sample code.