Quantcast

Sending E-mail using Telnet

Back to 1998 when I was learning the SMTP protocol, that moment was very interesting for me to learn something new, one of fundamental protocol on the internet. You can read the details of the SMTP protocol here. SMTP stands for Simple Mail Transfer Protocol. Created by Jonathan B Postel, the objective is simple, to transfer mail reliably and efficiently. The SMTP protocol still used today by many e-mail clients software.

Through this article, I will show you how to send simple e-mail using SMTP protocol. You will learn basic SMTP commands to send e-mail.

1. Open your command prompt window.

2. Type telnet [smtp host] [port 25], because I am using XL network, so I will use XL SMTP host. Their SMTP host is xlsmtp.xl.net.id. Standard port number for SMTP is 25. You can search your network SMTP host on the internet.

Connecting to XL SMTP host

Connecting to XL SMTP host

3. Type HELO or EHLO command. EHLO command is like HELO command but EHLO command will response with several SMTP abilities on that host.

Sending EHLO command

Sending EHLO command

4. Type MAIL FROM command. This command is to define the sender e-mail address.

Sending MAIL FROM command with my e-mail address as a sender address

Sending MAIL FROM command with my e-mail address as a sender address

5. Type RCPT TO command. This command is to define target or recipient e-mail address.

Send RCPT TO command

Send RCPT TO command

6. Type DATA command. DATA command is to start input envelope part and body message part of your e-mail. What is envelope part? For example the e-mail header message that contains From, To, Subject and so on is called an envelope part of your e-mail, then there is single blank line that seperate the envelope data with the body e-mail message. Please see the sample below. At the end, just type single dot (.) command on a single line to finish the DATA command transaction.

Type DATA command

Type DATA command

Type the details of envelope part and body message part

Type the details of envelope part and body message part

Send the single dot (.) to end the DATA command transaction

Send the single dot (.) to end the DATA command transaction

7. Type QUIT command to quit sending e-mail transaction and your message will be queued for delivery to the recipient address.

Send QUIT command

Send QUIT command

Simple isn’t? You can try yourself with your ISP SMTP server.

If you have any difficulty, please send comment below or drop us e-mail to info@sony-ak.com.

Bookmark and Share

Related posts:

  1. Connect to IRC (Internet Relay Chat) Network using Telnet
  2. How to Create Forwarding to Multiple E-mail Address in Gmail or Google Apps E-mail

11 Comments

  1. agung says:

    this is cool. actually i’ve known this from a few years back, but this is the real deal for the implementation.
    Thank you.

  2. Anna says:

    so,whats the adventage and disadvantage of sending email using telnet?

  3. fael says:

    thank you, kang!! this is my recommended website for learning IT hehehehe

  4. Wino says:

    Terima kasih, Mas….

    Saya numpang kopi – paste imformasinya, it’s cool
    Keep moving…

  5. sarwojowo says:

    lumayan kang, buat referensi

  6. kurcaci says:

    kalo smtp untuk fastnet atau speedy kemana ya..?

  7. Badaei says:

    Langsung dipraktekin Bos…..HIDUP SONY AK….

  8. alief says:

    permisi om, sepertinya hanya bisa untuk kirim ke alamat email gmail :)

    ~CMIIW~

  9. irzan2010 says:

    maaf mas, bagaimana ya kita tau kalo email server ISP kita bisa open relay?
    kok saya coba seperti yang diatas kok nggak bisa relay? apa saya yang salah setingan?

  10. Sony AK says:

    @irzan2010 kalo smtp ISP biasanya sudah gak bisa open relay :) cuman mestinya bisa kok send ke email address kalo pake smtp ISP kita sendiri, ada error message? ngirimnya dari address apa ke mana? pake smtp apa?

  11. Kristoforus says:

    Hi,….
    thx for inf.Doesnt available.
    I got Eror messsage Relay Access Danied,This is only work if u have own mail service

    Terima kasih : Thx very much

Leave a Reply