Page 1 of 1

can we login into gmail account using batch?

Posted: 13 May 2012 23:06
by prash11
hi everyone,
i would like to know can we log in into our gmail account using batch file.?
username and password should be set in batch file only.
thank you!

Re: can we login into gmail account using batch?

Posted: 14 May 2012 05:51
by Squashman
And you are planning on doing this to send or receive mail?
I would think any pop3 client that supports command line input would work.

Re: can we login into gmail account using batch?

Posted: 14 May 2012 06:12
by prash11
no no i don't want to send and receive mail.
i am just asking is it possible or not.
and if it is possible then how?
and if it is not then why not?

Re: can we login into gmail account using batch?

Posted: 14 May 2012 07:42
by Squashman
prash11 wrote:no no i don't want to send and receive mail.
i am just asking is it possible or not.
and if it is possible then how?
and if it is not then why not?

This makes no sense.

Re: can we login into gmail account using batch?

Posted: 14 May 2012 07:51
by prash11
my requirement is after every reboot the batch program file should start.
and it should open the my gmail inbox.
before admin login on my machine.
i know how to start it after reboot but i dont know if i can open gmail inbox using batch file.

Re: can we login into gmail account using batch?

Posted: 14 May 2012 08:00
by Squashman
prash11 wrote:my requirement is after every reboot the batch program file should start.
and it should open the my gmail inbox.
before admin login on my machine.
i know how to start it after reboot but i dont know if i can open gmail inbox using batch file.

Have your browser save your login credentials.

Re: can we login into gmail account using batch?

Posted: 14 May 2012 12:13
by abc0502
I think VBscript can do it

Re: can we login into gmail account using batch?

Posted: 15 May 2012 05:08
by Squashman
abc0502 wrote:I think VBscript can do it

I thought so too and I actually found one online that does it but I could never get it to work.

Re: can we login into gmail account using batch?

Posted: 15 May 2012 13:06
by Matt20687
I would autohotkey to be honest. You can use it to input tabs, returns and such like. You can have it navigate to the username field and enter your username and then navigate to the password field and enter that. Quite simple to use

Re: can we login into gmail account using batch?

Posted: 17 May 2012 01:32
by taripo
Yes.
Though your question could've looked at things differently like How can you log into a pop3 server from the command line..

(doesn't have to be batch though obviously one could put it in a batch)

These are single commands..

gmail supports POP3.. and there are programs that can access POP3 from the command line.

I have used these two programs and am happy with them..

sendemail wants you to give it an SMTP server

getmail wants you to give it a POP server.

getmail
c:\getmail\getmail.exe
GetMail v1.33: WinNT console utility to download a mailbox's mail.

C:\>sendemail
sendemail-1.56 by Brandon Zehm


I haven't tried sendemail on an SMTP Server that requires authentication e.g. non ISP ones

But I see an option
-xu USERNAME username for SMTP authentication
-xp PASSWORD password for SMTP authentication

GMAIL does offer an SMTP Server.. and so does Yahoo, that require a user/pass.. And it looks like sendemail supports that.