Click here to Skip to main content
11,567,926 members (45,424 online)
Click here to Skip to main content

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

, 9 Dec 2008 GPL3 115.9K 8.2K 105
Rate this:
Please Sign up or sign in to vote.
In this email client application, I have implemented my own SMTP and POP3 protocols in C#.

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: 
          gmail smtp port:  587 
          user name:   gmail user id (without 
          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: 
          gmail pop port:   995 
          user name:   gmail user id with 
          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.


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


About the Author

Rizwan Ahmed
Software Developer Techlogix
Pakistan Pakistan
No Biography provided

You may also be interested in...

Comments and Discussions

Questionsending not work for yahoo Pin
Mihir_228618-Jun-15 2:03
memberMihir_228618-Jun-15 2:03 
QuestionGive Error after send mail successfully Pin
Mihir_228617-Jun-15 2:05
memberMihir_228617-Jun-15 2:05 
QuestionSTARTTLS Give erorr 454 on sending mail. Pin
Mihir_228617-Jun-15 1:35
memberMihir_228617-Jun-15 1:35 
QuestionHow to move Fetched mails to a selected folder. Pin
Santhosh Kumar26-Sep-13 22:53
memberSanthosh Kumar26-Sep-13 22:53 
Questionauto complete text box Pin
jyothi asipu19-Feb-12 2:31
memberjyothi asipu19-Feb-12 2:31 
Question1 Pin
jyothi asipu29-Jan-12 2:43
memberjyothi asipu29-Jan-12 2:43 
AnswerRe: code in detail Pin
Rizwan Ahmed29-Jan-12 4:32
memberRizwan Ahmed29-Jan-12 4:32 
Generalhow sync without using imap and pop3 port? is it possible through http or https protocol Pin
subash110711-May-11 20:04
membersubash110711-May-11 20:04 
GeneralI get an error Pin
Cool Smith9-Mar-11 3:22
memberCool Smith9-Mar-11 3:22 
QuestionMessage body problem for HTML message body Pin
arindamrudra2-Mar-11 20:33
memberarindamrudra2-Mar-11 20:33 
Generalthanks. Pin
MuhammadAdeel23-Oct-10 9:54
memberMuhammadAdeel23-Oct-10 9:54 
QuestionHow to retrieve message base on folder type??? Pin
Johnny Doeboi27-Sep-10 4:15
memberJohnny Doeboi27-Sep-10 4:15 
QuestionWant to Use IMAP protocol [modified] Pin
jymitra20-Jul-10 1:55
memberjymitra20-Jul-10 1:55 
QuestionRe: Want to Use IMAP protocol Pin
Johnny Doeboi27-Sep-10 4:19
memberJohnny Doeboi27-Sep-10 4:19 
Generale-mails in arabic Pin
rula23-May-10 2:30
memberrula23-May-10 2:30 
GeneralRe: e-mails in arabic Pin
rula24-May-10 1:58
memberrula24-May-10 1:58 
GeneralRe: e-mails in arabic Pin
jsezar10-Aug-10 4:40
memberjsezar10-Aug-10 4:40 
Generalconnet pop3 or smtp using http proxy Pin
t4t4n27-Apr-10 21:56
membert4t4n27-Apr-10 21:56 
QuestionVoice support Pin
amitk_18916-Apr-10 5:47
memberamitk_18916-Apr-10 5:47 
AnswerRe: Voice support Pin
Rizwan Ahmed17-Apr-10 13:07
memberRizwan Ahmed17-Apr-10 13:07 
GeneralCharset Problem Pin
Meeking14-Mar-10 4:21
memberMeeking14-Mar-10 4:21 
GeneralMy vote of 2 Pin
frizzyH7-Jan-10 2:44
memberfrizzyH7-Jan-10 2:44 
QuestionIOException was unhandled... The handshake failed due to an unexpected packet format. Pin
coooollll22-Nov-09 23:44
membercoooollll22-Nov-09 23:44 
GeneralRe: IOException was unhandled... The handshake failed due to an unexpected packet format. Pin
djmc32112-Feb-10 2:18
memberdjmc32112-Feb-10 2:18 
GeneralDisable SSL Pin
Member 218125711-Aug-09 5:28
memberMember 218125711-Aug-09 5:28 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150624.2 | Last Updated 9 Dec 2008
Article Copyright 2008 by Rizwan Ahmed
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid