Read Email Using Telnet

Open your command prompt.
At the command prompt, type in
telnet example.com 110
Type user and the email address (username@example.com) of the user for which you wish to view emails:
user username@example.com
Then type in pass followed by your password:
pass yourpasswordgoeshere
Type list to bring up a list of your emails:
list
You will see a list of items with labels like "1 897" and "2 5136." Here is an example:
list
+OK POP3 clients that break here, they violate STD53.
1 897
2 5136
3 1884
4 2973
5 2595
6 3063
7 3509
8 2283
9 1926
10 2763
11 1795
12 2780
13 2342
14 2342
15 2342
16 3833
17 2211
18 793
19 797
20 2599
.
If you wish to read an email message such as 2 5136, you can type the following:
retr 2 
If you want to delete a message such as 1 897, type dele 1:
dele 1
When you are done checking your email, type quit.

How to Send Email Using TELNET

We use the domain example.com as an example.
Be sure to replace with your own domain.


Open your command prompt.
Now, connect with telnet using the following command:
telnet example.com 25
Type ehlo example.com. Some servers also accept helo in place of ehlo.
ehlo example.com
Type mail from: username@example.com:
mail from: username@example.com
Type rcpt to: friend@hotmail.com, friend@yahoo.com, friend@gmail.com (replace with your actual recipient name):
rcpt to: friend@hotmail.com, friend@yahoo.com, friend@gmail.com
To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter:
data
Subject: My Telnet Test Email

Hello,

This is an email sent by using the telnet command.

Your friend,
Me

.
Type quit to exit telnet.

Sync Your Clock from Internet Servers using the Command Prompt

Standard Time: 
tzutil /g

Time Zone: 
tzutil /l

Change the Time Zone: (Ex.)
tzutil /s "India Standard Time"

Update the Time from Internet Servers
w32tm /resync

Sending emails using Google SMTP Server through PHP Mailer.

<?php
require_once('class.phpmailer.php');

$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "smtp.gmail.com"; // google smtp server
$mail->Port = 465; // or 587
$mail->IsHTML(true);
$mail->Username = "email@gmail.com";
$mail->Password = "password";
$mail->SetFrom("example@gmail.com");
$mail->Subject = "Find Me";
$mail->Body = "Bet you can't., Find Me!";
$mail->AddAddress("email@gmail.com");

 if(!$mail->Send()) {
    echo "Mailer Error: " . $mail->ErrorInfo;
 } else {
    echo "Message has been sent";
 }
?>