Open connection

Command:

telnet mail.domain.tld 25

You should normally receive something like this:

Trying 000.000.000.000...

Say hello

Command:

HELO local.domain

Answer (normally):

250 mail.domain.tld

Set the sender

Command:

MAIL FROM: user@domain.tld

Answer (normally):

250 OK

Set the recipient

Command:

RCPT TO: user@domain.tld

Answer (normally):

250 OK

Compose the message

Command:

DATA

Answer (normally):

354 go ahead

Start writing content in the message

Insert data:

Subject: "Hello World!"

Sending the message

Enter a new line after the last word you have written. Add only a single . (dot) to this line. Hit enter.

.

If everything was ok you should receive a message like this and the mail should be sent:

250 ok 1090795155 qp 29731

That’s it.

Links

Comments