By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,030 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,030 IT Pros & Developers. It's quick & easy.

Need simple way to send an Email in .Net

P: n/a
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 me@myhost.net. I can send to yo*@myhost.net, but not
my******@someotherprovider.com). 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!

Aug 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

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.

StevenBarnes wrote:
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 me@myhost.net. I can send to yo*@myhost.net, but not
my******@someotherprovider.com). 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!

Aug 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.