can we login into gmail account using batch?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
prash11
Posts: 21
Joined: 27 Apr 2012 01:38

can we login into gmail account using batch?

#1 Post by prash11 » 13 May 2012 23:06

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!

Squashman
Expert
Posts: 3699
Joined: 23 Dec 2011 13:59

Re: can we login into gmail account using batch?

#2 Post by Squashman » 14 May 2012 05:51

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.

prash11
Posts: 21
Joined: 27 Apr 2012 01:38

Re: can we login into gmail account using batch?

#3 Post by prash11 » 14 May 2012 06:12

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?

Squashman
Expert
Posts: 3699
Joined: 23 Dec 2011 13:59

Re: can we login into gmail account using batch?

#4 Post by Squashman » 14 May 2012 07:42

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.

prash11
Posts: 21
Joined: 27 Apr 2012 01:38

Re: can we login into gmail account using batch?

#5 Post by prash11 » 14 May 2012 07:51

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.

Squashman
Expert
Posts: 3699
Joined: 23 Dec 2011 13:59

Re: can we login into gmail account using batch?

#6 Post by Squashman » 14 May 2012 08:00

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.

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: can we login into gmail account using batch?

#7 Post by abc0502 » 14 May 2012 12:13

I think VBscript can do it

Squashman
Expert
Posts: 3699
Joined: 23 Dec 2011 13:59

Re: can we login into gmail account using batch?

#8 Post by Squashman » 15 May 2012 05:08

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.

Matt20687
Posts: 54
Joined: 02 May 2012 14:42

Re: can we login into gmail account using batch?

#9 Post by Matt20687 » 15 May 2012 13:06

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

taripo
Posts: 212
Joined: 01 Aug 2011 13:48

Re: can we login into gmail account using batch?

#10 Post by taripo » 17 May 2012 01:32

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.

Post Reply