في هذه السلايدات نتكلم عن البريد الإلكتروني بشكل عام ثم بروتوكلات الإرسال والاستقبال المستخدمة فيه وهي POP3، IMAP4، SMTP.
بعدها نتكلم عن كيفية استخدام بروتوكول SMTP في لغة البرمجة C#.Net واستخدام هذا البروتوكول ضمن برنامج Packet Tracer.
25. S: 220 Simple Mail Transfer Service
C: HELLO SERVER
S: 250 SERVER
C: MAIL FROM:< abdulrazak@networkLab.com >
S: 250 OK
C: RCPT TO:<iman@networkLab.com>
S: 250 OK
C: DATA
C: 354 Start mail input; end with <CRLF>.<CRLF>
C: Dear,
C: I hope we will get the full mark at our Network subject
C: .
S: 250 OK
C: QUIT
S: 221 CLOSED
25
26. S: 220 Simple Mail Transfer Service
C: HELLO SERVER
S: 250 SERVER
C: MAIL FROM:< abdulrazak@networkLab.com >
S: 250 OK
C: RCPT TO:<iman@networkLab.com>
S: 250 OK
C: DATA
C: 354 Start mail input; end with <CRLF>.<CRLF>
C: Dear,
C: I hope we will get the full mark at our Network subject
C: .
S: 250 OK
C: QUIT
S: 221 CLOSED
26
30. SmtpClient client = new SmtpClient( host, port);
EnableSsl = true;
UseDefaultCredentials = false;
client.Credentials = new
System.Net.NetworkCredential(myEmail, myPassword);
MailMessage mail = new MailMessage(fromMail, toMail);
client.Send(mail);
mail.Body = "Peace be upon you, I am sending this
message from my own program and I hope we will get
the full mark in the Network Subject";
31