473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how i can access my pop3 account

115 100+
Hi

how i can access my pop3 account mail through my web page

am using asp.net with c#

do u have any sample code

pls guide me

Thanks

Yogarajan. G
Feb 19 '09 #1
1 1131
For sending email via your POP3 account you will have to change the Host and Port for the SMTPClient (see below). As for receiving, I guess the TCPClient class with Port 110 and an understanding of the protocol (which I don't currently posess) might help.

To send:
Expand|Select|Wrap|Line Numbers
  1.             MailMessage m = new MailMessage(Global.sEmailOriginator, sRecipient);
  2.  
  3.  
  4.             m.Subject = "The subject";
  5.             m.IsBodyHtml = false;  //whether you want HTML or plain text
  6.             m.Body = "Some message text rere";
  7.  
  8.             SmtpClient sm1 = new SmtpClient();
  9.  
  10.             sm1.Host = Global.sSmtpRelay;  //Host Name or IP address for server
  11.             sm1.Port = Global.iSMTPPort;   //SMTP (TCP) port to use (25 is def)
  12.             try
  13.             {
  14.                 sm1.Send(m);
  15.             }
Feb 23 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Alexander Franksmann | last post by:
Hello, I'm going to write a anti-spam-program based on a Whitelist. "If the mail sender is found in the database, my program should move the mail into another mailbox" The mailserver fetched the...
3
by: Mark Line | last post by:
Hello! I'm a python n00b! I've been writing in c++ for a few years so programming's not new to me, just python that I don't know the syntax!
2
by: Kevin Beyers | last post by:
Hello Everyone. I am in the process of writing an Internet connection wizard program for the company I am working for. At present, I have all the pieces together beside the part of setting the...
4
by: Matt Porter | last post by:
I'm writing a c# web app and I can't find a POP3 mail component. I found the SMTP component, but not a POP3 one. Seems like there should be one. What is the name of the POP3 component? or do I...
2
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers...
1
by: bobano | last post by:
Hi everyone, I am writing a POP3 Client program in Perl. You connect to a POP3 Server and have a running conversation with the mail server using commands from the RFC 1939 Post Office Protocol....
11
by: mp- | last post by:
I want to be able to allow people to check their email from my PHP online application. Given only the users 1) email address, 2) username (if applicable) and 3) password - how can I auto detect...
0
by: Daljeet Hanspal | last post by:
hi guys i got this code in c#.net to retrieve mails using pop3 protocal, i'm using MERCURY MAIL SERVER ........ I create a user acccount in mercury by name honey@localhost the problem is ...
2
by: SteveC | last post by:
Hello, I am trying to use POP3_SSL class of the poplib module to read email from my gmail account. I can connect just fine using the example here http://www.python.org/doc/lib/pop3-example.html...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.