DosTips.com

A Forum all about DOS Batch
It is currently 05 May 2016 06:21

All times are UTC-06:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 13 May 2012 23:06 
Offline

Joined: 27 Apr 2012 01:38
Posts: 21
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!


Top
   
PostPosted: 14 May 2012 05:51 
Offline

Joined: 23 Dec 2011 13:59
Posts: 3038
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.


Top
   
PostPosted: 14 May 2012 06:12 
Offline

Joined: 27 Apr 2012 01:38
Posts: 21
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?


Top
   
PostPosted: 14 May 2012 07:42 
Offline

Joined: 23 Dec 2011 13:59
Posts: 3038
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.


Top
   
PostPosted: 14 May 2012 07:51 
Offline

Joined: 27 Apr 2012 01:38
Posts: 21
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.


Top
   
PostPosted: 14 May 2012 08:00 
Offline

Joined: 23 Dec 2011 13:59
Posts: 3038
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.


Top
   
PostPosted: 14 May 2012 12:13 
Offline

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
I think VBscript can do it


Top
   
PostPosted: 15 May 2012 05:08 
Offline

Joined: 23 Dec 2011 13:59
Posts: 3038
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.


Top
   
PostPosted: 15 May 2012 13:06 
Offline

Joined: 02 May 2012 14:42
Posts: 54
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


Top
   
PostPosted: 17 May 2012 01:32 
Offline

Joined: 01 Aug 2011 13:48
Posts: 200
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited