Reff: HowTO Send and Receive Email Without an Email Client
Receiving Email
Go to command prompt. This can be done as following:
Start –> Run –> type “cmd” in the box –>OK
Telnet to the mail server (POP3 Server) and use your username password to login:
telnet pop3server.nirlog.com 110
The server will reply like this:
+OK <2324.1138330846@pop3server.nirlog.com>
Login to the mail server:
user username
The server acknowledges with:
+OK
Now input your password:
pass password
If the password is correct the server responds with:
+OK
Check your emails:
To see how many emails you have in your box use the command:list
This will list out the emails you have in your inbox:
+OK
1 1623
2 1601
3 15961, 2, 3 are the email ids and the 1623, 1601, 1596 are size of respective emails in bytes.
To read your emails you need to use command retr email id. E.g. if you want to read the first email then you should:retr 1
To delete the emails you need to to use dele command. E.g. to delete the first email you should:
dele 1
To exit form the server use command quit.
Sending Email
Go to command prompt. This can be done as following:
Start –> Run –> type “cmd” in the box –>OK
Telnet to the mail server (SMTP Server):
telnet smtpserver.nirlog.com 25
The reply should be like:
220 smtpserver.nirlog.com ESMTP
Greet the SMTP Server using helo command, after the helo you can put any domain (I’ve used nirlog.com):
helo nirlog.com
The server will respond with something like this:
250 smtpserver.nirlog.com
Input your email address. The sender’s email address:
mail from: user@nirlog.com
This should give:
250 ok
Input the recipients email address:
rcpt to: niranjan.kunwar@gmail.com
This should give:
250 ok
Compose your email with subject and body:
data
This should give:
354 go ahead
Now write the subject of your email:
Subject: This is a Test Subject (Press Enter twice, this is how Subject and body of an email is separated)
Write the body of the email:
This is a test mail from command line
.After the message body you need to press Enter, type a dot “.” and one more Enter. This way you’ll tell the SMTP server that you’re done writing the email. The server will reply with:
250 ok 1138345550 qp 22585
This means email has been accepted by the server and is queued for delivery.
You can exit from the server using command quit.
Comments