Fix issues with the Email Script.

The transport object wasn't working well with the static object. To
fix this, the actual login session is used to initialize a transport object.

Don't forget to change the password for the email with the one I gave you :)