Click here to Skip to main content
11,427,908 members (59,310 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
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:   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)

Share

About the Author

Rizwan Ahmed
Software Developer Techlogix
Pakistan Pakistan
No Biography provided

Comments and Discussions

 
QuestionHow to move Fetched mails to a selected folder. Pin
Santhosh Kumar26-Sep-13 23:53
memberSanthosh Kumar26-Sep-13 23:53 
Questionauto complete text box [modified] Pin
jyothi asipu19-Feb-12 3:31
memberjyothi asipu19-Feb-12 3:31 
Question1 [modified] Pin
jyothi asipu29-Jan-12 3:43
memberjyothi asipu29-Jan-12 3:43 
AnswerRe: code in detail Pin
Rizwan Ahmed29-Jan-12 5:32
memberRizwan Ahmed29-Jan-12 5:32 
Generalhow sync without using imap and pop3 port? is it possible through http or https protocol Pin
subash110711-May-11 21:04
membersubash110711-May-11 21:04 
GeneralI get an error Pin
Cool Smith9-Mar-11 4:22
memberCool Smith9-Mar-11 4:22 
QuestionMessage body problem for HTML message body Pin
arindamrudra2-Mar-11 21:33
memberarindamrudra2-Mar-11 21:33 
Generalthanks. Pin
MuhammadAdeel23-Oct-10 10:54
memberMuhammadAdeel23-Oct-10 10:54 
QuestionHow to retrieve message base on folder type??? Pin
Johnny Doeboi27-Sep-10 5:15
memberJohnny Doeboi27-Sep-10 5:15 
QuestionWant to Use IMAP protocol [modified] Pin
jymitra20-Jul-10 2:55
memberjymitra20-Jul-10 2:55 
QuestionRe: Want to Use IMAP protocol Pin
Johnny Doeboi27-Sep-10 5:19
memberJohnny Doeboi27-Sep-10 5:19 
Generale-mails in arabic Pin
rula23-May-10 3:30
memberrula23-May-10 3:30 
GeneralRe: e-mails in arabic Pin
rula24-May-10 2:58
memberrula24-May-10 2:58 
GeneralRe: e-mails in arabic Pin
jsezar10-Aug-10 5:40
memberjsezar10-Aug-10 5:40 
Generalconnet pop3 or smtp using http proxy Pin
t4t4n27-Apr-10 22:56
membert4t4n27-Apr-10 22:56 
QuestionVoice support Pin
amitk_18916-Apr-10 6:47
memberamitk_18916-Apr-10 6:47 
AnswerRe: Voice support Pin
Rizwan Ahmed17-Apr-10 14:07
memberRizwan Ahmed17-Apr-10 14:07 
GeneralCharset Problem Pin
Meeking14-Mar-10 5:21
memberMeeking14-Mar-10 5:21 
GeneralMy vote of 2 Pin
frizzyH7-Jan-10 3:44
memberfrizzyH7-Jan-10 3:44 
QuestionIOException was unhandled... The handshake failed due to an unexpected packet format. Pin
coooollll23-Nov-09 0:44
membercoooollll23-Nov-09 0:44 
GeneralRe: IOException was unhandled... The handshake failed due to an unexpected packet format. Pin
djmc32112-Feb-10 3:18
memberdjmc32112-Feb-10 3:18 
GeneralDisable SSL Pin
Member 218125711-Aug-09 6:28
memberMember 218125711-Aug-09 6:28 
GeneralRe: Disable SSL Pin
djmc32112-Feb-10 3:15
memberdjmc32112-Feb-10 3:15 
GeneralRe: Disable SSL Pin
NitinMakwana2-Mar-10 23:38
memberNitinMakwana2-Mar-10 23:38 
AnswerRe: Disable SSL Pin
NitinMakwana3-Mar-10 19:00
memberNitinMakwana3-Mar-10 19:00 
QuestionMessage Body Pin
AnnieRao8-Aug-09 1:43
memberAnnieRao8-Aug-09 1:43 
GeneralBody Format Problem Pin
AnnieRao29-Jul-09 5:19
memberAnnieRao29-Jul-09 5:19 
GeneralRe: Body Format Problem Pin
Rizwan Ahmed29-Jul-09 7:05
memberRizwan Ahmed29-Jul-09 7:05 
QuestionRe: Body Format Problem Pin
AnnieRao26-Aug-09 21:49
memberAnnieRao26-Aug-09 21:49 
QuestionListView as ListBox for Compose Mail Attachment.. Pin
hamudiz3-Feb-09 3:59
memberhamudiz3-Feb-09 3:59 
Questionmessages in arabic problem Pin
startpoint25-Jan-09 4:13
memberstartpoint25-Jan-09 4:13 
QuestionUnicode for arabic language Pin
startpoint25-Jan-09 4:08
memberstartpoint25-Jan-09 4:08 
QuestionA doubt about attachments... txt files not recognised.... Pin
jlarini9-Jan-09 2:55
memberjlarini9-Jan-09 2:55 
AnswerRe: A doubt about attachments... txt files not recognised.... Pin
Rizwan Ahmed9-Jan-09 7:18
memberRizwan Ahmed9-Jan-09 7:18 
AnswerRe: A doubt about attachments... txt files not recognised.... Pin
jlarini9-Jan-09 8:57
memberjlarini9-Jan-09 8:57 
GeneralRe: A doubt about attachments... txt files not recognised.... Pin
jlarini15-Jan-09 3:55
memberjlarini15-Jan-09 3:55 
GeneralRe: A doubt about attachments... txt files not recognised.... Pin
NitinMakwana31-Mar-10 20:16
memberNitinMakwana31-Mar-10 20:16 
GeneralRe: A doubt about attachments... txt files not recognised.... Pin
NitinMakwana31-Mar-10 22:43
memberNitinMakwana31-Mar-10 22:43 
QuestionCross-thread error... Pin
jlarini8-Jan-09 8:50
memberjlarini8-Jan-09 8:50 
AnswerRe: Cross-thread error... Pin
Rizwan Ahmed8-Jan-09 12:31
memberRizwan Ahmed8-Jan-09 12:31 
GeneralRe: Cross-thread error... Pin
jlarini9-Jan-09 2:08
memberjlarini9-Jan-09 2:08 
QuestionException of type 'Email_Client.Pop3ClientException' was thrown. Pin
Tapas Ranjan Singh8-Jan-09 3:12
memberTapas Ranjan Singh8-Jan-09 3:12 
AnswerRe: Exception of type 'Email_Client.Pop3ClientException' was thrown. Pin
Rizwan Ahmed8-Jan-09 6:38
memberRizwan Ahmed8-Jan-09 6:38 
GeneralRe: Exception of type 'Email_Client.Pop3ClientException' was thrown. Pin
Tapas Ranjan Singh8-Jan-09 19:53
memberTapas Ranjan Singh8-Jan-09 19:53 
GeneralRe: Exception of type 'Email_Client.Pop3ClientException' was thrown. Pin
Rizwan Ahmed8-Jan-09 22:15
memberRizwan Ahmed8-Jan-09 22:15 
GeneralRe: Exception of type 'Email_Client.Pop3ClientException' was thrown. Pin
Nurulhuda19-Apr-09 23:23
memberNurulhuda19-Apr-09 23:23 
QuestionRe: Exception of type 'Email_Client.Pop3ClientException' was thrown. Pin
NitinMakwana3-Mar-10 19:56
memberNitinMakwana3-Mar-10 19:56 
GeneralNot Receive Emails sent by your application Pin
Member 15187116-Dec-08 2:52
memberMember 15187116-Dec-08 2:52 
GeneralRe: Not Receive Emails sent by your application Pin
Rizwan Ahmed16-Dec-08 5:55
memberRizwan Ahmed16-Dec-08 5:55 
GeneralRe: Not Receive Emails sent by your application Pin
Member 15187116-Dec-08 15:43
memberMember 15187116-Dec-08 15:43 

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
Web01 | 2.8.150428.2 | Last Updated 9 Dec 2008
Article Copyright 2008 by Rizwan Ahmed
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid