Sending Emails from the Command Line in Windows: No Extra Software Required


As modern technology evolves, users are constantly searching for new ways to simplify their daily tasks. One example is learning how to send emails from the command line in Windows, without using any extra software. This technique can streamline your emailing process and optimize system resources. In this article, we will discuss how you can send emails directly from the command line with ease.

Step 1: Install Telnet Client

Before you begin, you need to enable the Telnet Client on your computer. Telnet is a network protocol that allows you to connect and interact with remote servers via a command-line interface. Follow these steps to enable Telnet:

1. Open the Control Panel.

2. Navigate to Programs > Programs and Features.

3. Click “Turn Windows features on or off” on the left side.

4. Scroll down until you find “Telnet Client” and check the box beside it.

5. Click “OK” and wait for the installation to finish.

Step 2: Gather Email Server Information

To send an email using the command line, you need your email server’s Simple Mail Transfer Protocol (SMTP) address and port number:

1. Check your email provider’s documentation for their SMTP server address and port number.

Common SMTP servers are:

– Google (Gmail):

– Microsoft (Outlook/Hotmail):

– Yahoo:

2. Note down this information as you will need it later.

Step 3: Compose Your Email

Compose a draft of your email with the following details:

1. The recipient’s email address

2. The subject of the email

3. The body of the message (including any attachments)

Step 4: Send Email via Command Line

Open Command Prompt by typing “cmd” in Windows search bar and hitting “Enter.” Follow these steps to send your email:

1. Type the following command to connect to your email server (replace ‘’ and ‘port_number’ with your SMTP server’s address and port number):

   `telnet port_number`

2. Wait for a response from the server, indicating that you have successfully connected.

3. Introduce yourself to the server using the HELO or EHLO command, followed by your computer or domain name:


4. Input your email address using the MAIL FROM command:

    `MAIL FROM:`

5. Input the recipient’s email address using the RCPT TO command:

    `RCPT TO:`

6. Begin composing the email body with the DATA command:


7. Write the email subject and content:

   Subject: Your Email Subject Here

      Your email content goes here.

8. Press “Enter” to send the email.


In today’s fast-paced world, knowing how to send emails directly from the command line in Windows without extra software can save time and system resources. By following these simple steps, you can effectively manage your email operations with minimal hassle and maximum efficiency.