sending pop3 mail

  • Thread starter Thread starter Ken Nistler
  • Start date Start date
K

Ken Nistler

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
 
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]
(e-mail address removed)
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.com/info/cpyright.htm"
 
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.Mail.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 said:
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]
(e-mail address removed)
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.com/info/cpyright.htm"



Ken Nistler said:
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
 
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.
 
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
 
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.
 
Back
Top