Checking Email from Command Prompt

225 pts.
Tags:
.exe
Batch files
Command line
Email
Microsoft Windows 7
Microsoft Windows XP
I am aware of many applications that allow you to send email from the command line. My favorite is 'sendEmail' which I use in batch files and '.exe's' to retrieve logs and files from my client's computers when trouble shooting their software. 
What I cannot find is a way to check email or receive notices through a command line utility. I would like to have a way to at least check a designated inbox or even receive notice of an incoming email.
Any ideas on how this can be done?
Thanks in advance.


Software/Hardware used:
Windows xp-7

Answer Wiki

Thanks. We'll let you know when a new response is added.

All I know how to do is check if there is mail in a specific inbox through the cmd prompt

telnet to their exchange server

telnet prdcplvxmb001 25
user shane
pass 12345
list

this will display how many emails are waiting to be delivered

Hope this helps

Shane.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Techy1984
    Thank you, Will this work from a standard Windows cmd prompt or do you need to instal TelNet? My goal is to have a stand-alone utility which can check my email from a command line. This would be faster and lighter on the system. It would also make a nice companion to sendEmail which is a stand-alone emailer. Thanks,
    225 pointsBadges:
    report
  • carlosdl
    AFAIK, a telnet client is included by default in all versions of Windows.
    70,180 pointsBadges:
    report
  • Techy1984
    Thanks I had always thought that TelNet was a separate program because of this information I had found; http://www.telnet.org/ This should help me get started in the right direction though, I do not have an exchange server. Will this be a problem? I was just looking for a way to check any inbox that supports remote login like hotmail or gmail. Thanks again for all your help.
    225 pointsBadges:
    report
  • carlosdl
    "I do not have an exchange server. Will this be a problem?" Not necessarily. If the mail server has pop access enabled, and you know the server address and POP port, you would probably be able to check e-mail this way. Additionally, if the server requires an encrypted connection, you might need to use some other tool instead of a telnet client (such as an ssl or tls client program like putty or openSSL).
    70,180 pointsBadges:
    report
  • Techy1984
    I tried using telnet from the command prompt but received an unrecognized command error from windows. Downloaded Putty but it appears to be designed for connecting to another computer not connecting to a server such as POP or IMAP but it could just be my lack of know how on using it. Am I doing something wrong with the telnet command? I tried using Shane's example above.
    225 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following