Need simple way to send an Email in .Net

  • Thread starter Thread starter StevenBarnes
  • Start date Start date
S

StevenBarnes

I need to have some .Net code be able to send Email using my ISP's SMTP
server. I found some articles on how to use the MAIL FROM: and RCPT TO:
commands that you can stream to a tcp connection on port 25 of the mail
server.
Works nice, but I can only send Emails to addresses on the same domain
as mine (I'm (e-mail address removed). I can send to (e-mail address removed), but not
(e-mail address removed)). I get a code back from the RCPT TO:
command of "relaying denied".
Am I missing some sort of authentication or sign-in process? I can
telnet to the mail server at a DOS command window & see the same
results. I can telnet to the POP3 port (110) & check mail.

There's got to be a very simple (non-commercial, I just need a code
example) way for .Net to do this. Not everyone is running an SMTP on
their own IIS server.

Thanks for any help or direction you can provide!
 
You need to be able to telnet on port 25 -- smtp protocol.

Relaying means that your sendmail/smpt server recognizes the ip address
of your sending server as legal to send mail. This can be configured
in several ways, in the access file for example, but has to be done on
the external server.
 
Back
Top