Write a simple SMTP server that is able to establish an SMTP connection with the client and receive
the email sent. The SMTP server should reply the client with the appropriate reply code based on the
following SMTP commands.
Command Reply Code
DATA 354
HELO 250
MAIL FROM 250
QUIT 221
RCPT TO 250

Recommended Answers

All 5 Replies

Is this your assignment? What have you done so far? Do you have any specific questions?

its my lab questions. but i dun get like how to write the code for it >< this is wat the question only provide.

It won't be a simple program. You should do some research about SMTP. Google it. Read the RFC that defines the protocol.
One approach will be to use Sockets.

but its a 2 marks question ><

Is that important or related to how much programming you need to do for this assignment?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.