Using System.Web.Mail without a relay server?

J

Jinsong Liu

I need to using System.Web.Mail to send out notifications from my
ASP.NET application. Based on what I know, a relay enabled SMTP server
is required. Is there any way I can use a SMTP server which has relay
disabled?

thanks
 
C

Curt_C [MVP]

no...
That's like saying I want to drive my car without the key....

You need an accessible server to send the mail through. It can be the same
box or any other accessible SMTP server. In order for the other server to
accept the mail from your server and relay it out, it needs to have relaying
allowed.
 
J

Jinsong Liu

Maybe I did not make myself clear. I do have access to a SMTP server,
but the relay is not allowed on that server.

My guess is I can still send notification out if my message always
originates from my SMTP server domain. (the from property set to a
valid email address on my SMTP server), even my server does not allow
relay. Am I correct?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top