Outgoing e-mail server from Safari / text document
Assuming you're using OSX 10.8, under Mail > Preferences > Composing, the drop-down menu for "Send new messages from" can be changed from the default "Account of selected mailbox" to the specific account you want (in your case, the Gmail account).