Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:30:21+00:00 2026-06-12T15:30:21+00:00

Could anyone please help me create a simple, basic email client and email server

  • 0

Could anyone please help me create a simple, basic email client and email server using UDP and get familiar with how SMTP works?

I have just started computer networking and I only need to know the steps involved.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:30:22+00:00Added an answer on June 12, 2026 at 3:30 pm

    Internet RFCs (Request For Comments) are the best source for this kind of information: SMTP is outlined in RFC 821. The good news is that SMTP is a text-based protocol, just like HTTP and friends.

    Here’s an example dialogue between client C and server S (taken from wikipedia):

    S: 220 smtp.example.com ESMTP Postfix
    C: HELO relay.example.org
    S: 250 Hello relay.example.org, I am glad to meet you
    C: MAIL FROM:<bob@example.org>
    S: 250 Ok
    C: RCPT TO:<alice@example.com>
    S: 250 Ok
    C: RCPT TO:<theboss@example.com>
    S: 250 Ok
    C: DATA
    S: 354 End data with <CR><LF>.<CR><LF>
    C: From: "Bob Example" <bob@example.org>
    C: To: "Alice Example" <alice@example.com>
    C: Cc: theboss@example.com
    C: Date: Tue, 15 January 2008 16:02:43 -0500
    C: Subject: Test message
    C:
    C: Hello Alice.
    C: This is a test message with 5 header fields and 4 lines in the message body.
    C: Your friend,
    C: Bob
    C: .
    S: 250 Ok: queued as 12345
    C: QUIT
    S: 221 Bye
    {The server closes the connection}
    

    Using UDP for email would not be the best idea, because UDP packets can be dropped. TCP would be better to use. But since you mention it’s an assignment, I guess it’s okay.

    So first write your generic UDP client/server code. Then modify it to support SMTP commands.

    I would start by implementing the simple echo protocol first. Or just search for some source code online in your favorite language for the echo protocol. For example, if you wanted to use C++ with boost.asio for networking, it has demo code for a UDP echo client and server. For Perl, there’s some simple UDP code here.

    Then skim over the parts of RFC 821 you need, and go from there. I’m guessing since it’s an assignment, you might not need everything in the protocol.

    Since the protocol is just simple text commands and responses, parsing it shouldn’t be a problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could anyone please help me using C# Api in Z3. I have no idea
Could anyone please help me to create RTF from string in C#? I save
Could anyone please help me convert this code to vb.net, I have tried it
Ok so could anyone please help me out with the VB for auto entering
Could anyone please tell how jre directory help in the running java programs? I'm
Could anyone give me some help with this please? The content needs to appear
im wondering if anyone could please help me with a css / html issue.
Auxiliary Problem Hi, could anyone please help me understand the behavior of SimpleCursorAdapter.ViewBinder.setViewValue ?
Could anyone please help with a PHP lock file function ? I want to
Could anyone please let me know if there is a way to programatically determine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.