I need to know how do I activate or deactivate gpio pins when sending an email to a specific email address? I already have an email setup, I just don't know how to do the rest of what I want.
Check out the RPi.GPIO Python library. Your question does not exactly specify what you're trying to do, but for a general GPIO tutorial, check out this page on Make magazine:
Hope this helps.