Copy and paste the following text starting with cat << ! > raspi-gmail.py and ending with the ! and paste that into your SSH window to paste all of the code into a new file called raspi-gmail.py
Next up, we'll make the file into an application (executable), type chmod +x raspi-gmail.py
Finally you can run the script! Type in sudo ./raspi-gmail.py
Send yourself some emails to see the green LED light up!