Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / C#

Email Client Application by Implementing Our Own SMTP and POP3 protocols using C#

Rate me:
Please Sign up or sign in to vote.
3.31/5 (32 votes)
9 Dec 2008GPL32 min read 210.1K   11.8K   106   81
In this email client application, I have implemented my own SMTP and POP3 protocols in C#.
Image 1

How to send an email message? (click on compose mail tab)

You can send an email message by using any SMTP server, which allows you to do so. For example, you can send an email message by using gmail smtp server (it is freely available) to any SMTP server like GMail, Yahoo, Hotmail, etc.

          gmail smtp server:   smtp.gmail.com 
          gmail smtp port:  587 
          user name:   gmail user id (without @gmail.com) 
          password:   gmail password

After providing the above information, you specify sender and recepient's email address. You can specify more than one recepient's email address; each is separated by comma or semi-colon. The fields cc and bcc are optional. Then you specify subject, add file attachments(if any), and write the actual message. You may apply formatting on the actual message. Then you click on send button in order to send the email. The status bar shows you progress information.

How to receive email messages? (click on check mail tab)

You can receive emails from any pop server, which allows you to do so. For example, gmail pop server is freely available. In order to use GMail pop service, you must first enable pop service by going into GMail settings. In GMail settings, click on "forwarding and pop/imap" option, then select "enable pop for all mail" option and after that click on save changes button. Now you can check your emails by using my email client application.

          gmail pop server:   pop.gmail.com 
          gmail pop port:   995 
          user name:   gmail user id with @gmail.com 
          password:   gmail password

After providing the above information, click on connect button. After connecting and verifying user name and password, all emails (if there exist any) will be displayed in the inbox. In order to delete an email, press right click on the email, a context menu will display, then select delete option. In order to display an email message, press left click on the email. After fetching the email from the pop server, it will be displayed to the user. If the email contains any file attachment, then the user can also save the file by first selecting it and then click on save option.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer Techlogix
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generale-mails in arabic Pin
rula23-May-10 2:30
rula23-May-10 2:30 
GeneralRe: e-mails in arabic Pin
rula24-May-10 1:58
rula24-May-10 1:58 
GeneralRe: e-mails in arabic Pin
jsezar10-Aug-10 4:40
jsezar10-Aug-10 4:40 
Generalconnet pop3 or smtp using http proxy Pin
t4t4n27-Apr-10 21:56
t4t4n27-Apr-10 21:56 
QuestionVoice support Pin
amitk_18916-Apr-10 5:47
amitk_18916-Apr-10 5:47 
AnswerRe: Voice support Pin
Rizwan Ahmed17-Apr-10 13:07
Rizwan Ahmed17-Apr-10 13:07 
GeneralCharset Problem Pin
Meeking14-Mar-10 4:21
Meeking14-Mar-10 4:21 
GeneralMy vote of 2 Pin
frizzyH7-Jan-10 2:44
frizzyH7-Jan-10 2:44 
Works only with gmail mail server!(
QuestionIOException was unhandled... The handshake failed due to an unexpected packet format. Pin
coooollll22-Nov-09 23:44
coooollll22-Nov-09 23:44 
GeneralRe: IOException was unhandled... The handshake failed due to an unexpected packet format. Pin
djmc32112-Feb-10 2:18
djmc32112-Feb-10 2:18 
GeneralDisable SSL Pin
Afshin Zavar11-Aug-09 5:28
Afshin Zavar11-Aug-09 5:28 
GeneralRe: Disable SSL Pin
djmc32112-Feb-10 2:15
djmc32112-Feb-10 2:15 
GeneralRe: Disable SSL Pin
NitinMakwana2-Mar-10 22:38
NitinMakwana2-Mar-10 22:38 
AnswerRe: Disable SSL Pin
NitinMakwana3-Mar-10 18:00
NitinMakwana3-Mar-10 18:00 
QuestionMessage Body Pin
AnnieRao8-Aug-09 0:43
AnnieRao8-Aug-09 0:43 
GeneralBody Format Problem Pin
AnnieRao29-Jul-09 4:19
AnnieRao29-Jul-09 4:19 
GeneralRe: Body Format Problem Pin
Rizwan Ahmed29-Jul-09 6:05
Rizwan Ahmed29-Jul-09 6:05 
QuestionRe: Body Format Problem Pin
AnnieRao26-Aug-09 20:49
AnnieRao26-Aug-09 20:49 
QuestionListView as ListBox for Compose Mail Attachment.. Pin
hamudiz3-Feb-09 2:59
hamudiz3-Feb-09 2:59 
Questionmessages in arabic problem Pin
startpoint25-Jan-09 3:13
startpoint25-Jan-09 3:13 
QuestionUnicode for arabic language Pin
startpoint25-Jan-09 3:08
startpoint25-Jan-09 3:08 
QuestionA doubt about attachments... txt files not recognised.... Pin
jlarini9-Jan-09 1:55
jlarini9-Jan-09 1:55 
AnswerRe: A doubt about attachments... txt files not recognised.... Pin
Rizwan Ahmed9-Jan-09 6:18
Rizwan Ahmed9-Jan-09 6:18 
AnswerRe: A doubt about attachments... txt files not recognised.... Pin
jlarini9-Jan-09 7:57
jlarini9-Jan-09 7:57 
GeneralRe: A doubt about attachments... txt files not recognised.... Pin
jlarini15-Jan-09 2:55
jlarini15-Jan-09 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.