SMTP Commands and Response Codes

Posted by arlene

The first command that the Sender-SMTP client sends is either the HELO command or the EHLO command. EHLO is now the preferred command and is part of the basic service extensions. If an SMTP server does not support additional service extensions, it will respond with an error message indicating a syntax error.

This is the basic syntax for SMTP commands:

<command> <arguments> <CRLF>

In this syntax, <CRLF> indicates that a carriage-return followed by a line-feed character is used to signal the end of the command line.

In the following commands, the term forward-path is a list of hosts the message travels through to reach its destination. The term reverse-path is used to indicate how to get back to the sender of the email, which can be helpful when returning error or other informational messages.

The basic SMTP commands include the following:

Living the Web 2.0

  • NOOPThis is the “no operation” command. The server responds with OK.
  • VRFY—This command asks the Receiver-SMTP to verify that the username that is passed as an argument with the command be checked to determine whether it’s valid. If the username is a valid one, the full name and mailbox of the user are returned.

Because SMTP allows for sending a single message to multiple recipients, a large mailing list could generate a lot of network traffic. Thus, the original SMTP RFC 821 recommends that only one copy of the actual email be sent to the server in this sort of situation. The SEND command (and its associated commands) was intended originally to send a message directly to a user’s terminal. In today’s world of PCs and workstations, it isn’t typical to find a user sitting at a terminal. It also usually is not desirable to have mail pop up suddenly on a user’s terminal if this function is still supported in your network. Instead, the MAIL command and its other associated commands are usually used.

The DATA portion of the mail message is terminated using the period (.) character by itself on a single line—which is followed by the line terminating characters (CRLF). Typically this will be <CRLF>.<CRLF>, because the first <CRLF> terminates the last line of actual data.

Possibly related posts: (automatically generated)
SMTP Commands and Response Codes

4 Responses to “SMTP Commands and Response Codes”

  1. Some use domains to develop complete websites for many reasons, and others purchase domain names for parked domain traffic or simply for future resale value. … Cheap Domains

  2. Gallery gives you an intuitive way to blend photo management seamlessly into your own website whether you’ re running a small personal site or a large community site. … Including NetObjects Fusion

  3. When we make changes to your account or domain name for you, we often require the, the secret question and answer to your account as authorization. … Public WHOIS Database

  4. This is how the website you create on your computer at home is transferred (uploaded) to the Internet. … Web Hosting

Leave a Reply

LogoAlexa CounterFeedBurner Counter