Send email manually telnet

A blast from the past!

To send an email manually using Telnet, you'll need to follow these steps:

Prerequisites:

  1. You have a Telnet client installed on your computer (e.g., Windows, macOS, or Linux).
  2. You have a working email server (SMTP) that allows you to send emails.
  3. You have the email server's hostname or IP address and the port number it uses for SMTP (usually 25 or 587).

Step-by-Step Instructions:

  1. Open a Telnet client on your computer. For example, on Windows, you can use the built-in Telnet client by typing telnet in the Command Prompt.
  2. Connect to the email server using the following command:
    telnet <email_server_hostname_or_IP> 25

    Replace <email_server_hostname_or_IP> with the hostname or IP address of your email server.

For example:

telnet example.com 25
  1. Once connected, you'll see a prompt indicating that you're connected to the email server. This is usually denoted by a 220 response code.
  2. To send an email, you'll need to issue a series of commands. The basic format is:
    <command> <recipient_email> <subject> <message>

    Here's an example:

    HELO example.com
    MAIL FROM: <your_email_address>
    RCPT TO: <recipient_email>
    DATA
    Subject: Test email from Telnet
    This is a test email sent using Telnet.
    .
    QUIT

    Here's a breakdown of each command:

For example:

HELO example.com
220 example.com ESMTP
MAIL FROM: [email protected]
250 2.1.0 <[email protected]>... Sender ok
RCPT TO: [email protected]
250 2.1.5 <[email protected]>... Recipient ok
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Subject: Test email from Telnet
This is a test email sent using Telnet.
.
250 2.6.0 <[email protected]>... Message accepted for delivery
QUIT
221 2.0.0 example.com closing connection
  1. Press Enter to send the email. You should see a response indicating that the email was accepted for delivery.

Important Notes: