Click here to Skip to main content
Licence GPL3
First Posted 21 Mar 2008
Views 73,566
Downloads 3,036
Bookmarked 88 times

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

By | 9 Dec 2008 | Article
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)

About the Author

Rizwan Ahmed

Software Developer
Techlogix
Pakistan Pakistan

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questionauto complete text box [modified] Pinmemberjyothi asipu2:31 19 Feb '12  
Question1 [modified] Pinmemberjyothi asipu2:43 29 Jan '12  
AnswerRe: code in detail PinmemberRizwan Ahmed4:32 29 Jan '12  
Generalhow sync without using imap and pop3 port? is it possible through http or https protocol Pinmembersubash110720:04 11 May '11  
GeneralI get an error PinmemberCool Smith3:22 9 Mar '11  
QuestionMessage body problem for HTML message body Pinmemberarindamrudra20:33 2 Mar '11  
Generalthanks. PinmemberMuhammadAdeel9:54 23 Oct '10  
QuestionHow to retrieve message base on folder type??? PinmemberJohnny Doeboi4:15 27 Sep '10  
QuestionWant to Use IMAP protocol [modified] Pinmemberjymitra1:55 20 Jul '10  
QuestionRe: Want to Use IMAP protocol PinmemberJohnny Doeboi4:19 27 Sep '10  
Generale-mails in arabic Pinmemberrula2:30 23 May '10  
GeneralRe: e-mails in arabic Pinmemberrula1:58 24 May '10  
GeneralRe: e-mails in arabic Pinmemberjsezar4:40 10 Aug '10  
Generalconnet pop3 or smtp using http proxy Pinmembert4t4n21:56 27 Apr '10  
QuestionVoice support Pinmemberamitk_1895:47 16 Apr '10  
AnswerRe: Voice support PinmemberRizwan Ahmed13:07 17 Apr '10  
GeneralCharset Problem PinmemberMeeking4:21 14 Mar '10  
GeneralMy vote of 2 PinmemberfrizzyH2:44 7 Jan '10  
QuestionIOException was unhandled... The handshake failed due to an unexpected packet format. Pinmembercoooollll223:44 2 Nov '09  
GeneralMessage Removed PinmemberNitinMakwana18:22 4 Feb '10  
GeneralRe: IOException was unhandled... The handshake failed due to an unexpected packet format. Pinmemberdjmc3212:18 12 Feb '10  
GeneralDisable SSL PinmemberMember 21812575:28 11 Aug '09  
GeneralRe: Disable SSL Pinmemberdjmc3212:15 12 Feb '10  
GeneralRe: Disable SSL PinmemberNitinMakwana22:38 2 Mar '10  
AnswerRe: Disable SSL PinmemberNitinMakwana18:00 3 Mar '10  

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.

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