473,768 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sending pop3 mail


Hello, I was wondering if anyone can help me out.

I am trying to send mail from a c# app thru my ISP pop3 mail server. I
figured it would be similar to using SMTP, but use my username and password
for authentication. I guess what I am trying to do is the same thing that
outlook express does where you can send mail thru an account that you set
up. I would like my c# app to have the ability to email me when I get an
error or when a exception gets generated. If anyone has any examples or can
point me in the correct direction I would appreciate it.

Thanks
Ken
Nov 15 '05 #1
5 6695
Pop3 is a mail retrieval protocol. You cannot send mail using this
protocol.

Instead you should try using your ISP's SMTP servers to send mail.

--
Jared Parsons [MSFT]
ja******@online .microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.c om/info/cpyright.htm"

"Ken Nistler" <KN******@vp.co m> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..

Hello, I was wondering if anyone can help me out.

I am trying to send mail from a c# app thru my ISP pop3 mail server. I
figured it would be similar to using SMTP, but use my username and password for authentication. I guess what I am trying to do is the same thing that
outlook express does where you can send mail thru an account that you set
up. I would like my c# app to have the ability to email me when I get an
error or when a exception gets generated. If anyone has any examples or can point me in the correct direction I would appreciate it.

Thanks
Ken

Nov 15 '05 #2
Thank you for your response, I did not know that the pop3 mail was only for
retrieval. I was getting an exception trying to use the
"System.Web.Mai l.SmtpMail" class. The inner exception was stating that I
did not have permissions to relay the message, so I thought that I had to
pass authentication criteria to the mail server. I think its cause I am
currently not connected thru the ISP that I am trying to send the mail thru.
I will try the Smpt again later when I am connected thru my ISP.

Thanks again
Ken

"Jared Parsons [MSFT]" <ja******@onlin e.microsoft.com > wrote in message
news:uI******** ******@TK2MSFTN GP10.phx.gbl...
Pop3 is a mail retrieval protocol. You cannot send mail using this
protocol.

Instead you should try using your ISP's SMTP servers to send mail.

--
Jared Parsons [MSFT]
ja******@online .microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights. OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.c om/info/cpyright.htm"

"Ken Nistler" <KN******@vp.co m> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..

Hello, I was wondering if anyone can help me out.

I am trying to send mail from a c# app thru my ISP pop3 mail server. I
figured it would be similar to using SMTP, but use my username and

password
for authentication. I guess what I am trying to do is the same thing that outlook express does where you can send mail thru an account that you set up. I would like my c# app to have the ability to email me when I get an error or when a exception gets generated. If anyone has any examples or

can
point me in the correct direction I would appreciate it.

Thanks
Ken


Nov 15 '05 #3

Hi Ken,

We will wait for your feedback, if it still does not work, please feel free
to post, we will help you.

Also, if the problem existed, please provide the sample code to reproduce
the problem, and the exception expression.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #4
Hi, I fixed up my code last night and used the SMTP class and it worked just
fine. I guess since the other computer that I was trying to execute the
code was not connected thru the ISP it would not allow me to relay the mail
message. Sorry to have taken up your time, and thanks for your help.

Thanks
Ken
Nov 15 '05 #5

Hi Ken,

Thanks for your feedback.

I am glad it finally works, if you have any further question, please feel
free to post in this group, we will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
207
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 have to write my own?
1
2980
by: Barney Nicholls | last post by:
Is it possible to retrieve the headers only from a pop3 mail server. I can currently retrive the message id and size but would like more information ideally the following: Subject From To
8
1647
by: Kevin F | last post by:
Having some troubles downloading messages with POP3... I can connect to the server just fine and list messages without any problem with the following code: ------------------------ from poplib import * server = POP3("mail.bluebottle.com") print server.getwelcome()
1
10066
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. This program can perform 5 options from a menu on your POP3 mail by logging in with the correct POP3 server along with a user name and password that you use to log in to your ISP. The user name and password as well as the server name are all hard-coded...
2
1348
by: su haiqing | last post by:
Hi All, Is there a Windows API function used to create a pop3 mail account for Win server 2003. I just know an ADSI method to implement this. Thanks, Su
0
2088
by: misra | last post by:
Hi, I am using a C# code to call blat and send mail. When I send mails with long sentences, the mail automatically is send with multiple lines. However, certain times the body and format of the mail has to look like the following (Have put the body in double quotes) "The following numbers have been Un-validated for - PARIS 20 misrar 31/05/2007 14:13:52 55 misrar 31/05/2007 14:13:52 75 misrar ...
2
1594
by: =?Utf-8?B?YmFyYnlxMTA=?= | last post by:
After sending mail, it leaves the outbox as normal and clears and hits the sent folder, but then I get a popup box that states EMAIL PROBLEM One or more e-mail messages cannot be sent. Details
2
1932
by: ornto | last post by:
Hi, I'm trying to create an application which checks a dynamic web site and on certain events sends an email to me. My problem though is with the email task. By now I made this simple test code: #prova invio email smtpserver = smtplib.SMTP(mailserver) messaggio= "Messaggio di prova" print mail print messaggio
0
9407
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10171
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10015
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7384
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5280
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.