THis is a sample of sending a mail from gmail account without asking user for password or credentials. It selects first account it sees in account manager, it can be edited to ask user to select an account and so on. Help yourself.