Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1185
  • Last Modified:

send mail using exchange server in asp.net

hi ,
      I host an .net application in IIS 6.0 and i have no virtual smtp server in my IIS. i have an Email Exchange server on different location.

how can i give my email exchange server setting on my asp.net application for sending Emails?

when i give my exchange server SMTP setting on my application following issue comes:

1. Email send to only same domain e.g. assd@xyz.com to dsas@xyz.com
2. when try to send email to another domain Error  comes ?

i need urgent basis solution , plz help me



0
itbUD
Asked:
itbUD
  • 2
2 Solutions
 
unlocktechnologyCommented:
you need to allow relaying on your exchange server.

Why don;t you just install the SMTP service on your web server?
0
 
tigermattCommented:

The problem you are seeing is an Exchange issue, not a problem with your ASP.NET code. By design your Exchange Server will only accept email if it is sent to a domain it hosts; it will not send to external domains.

To allow the Web Server to relay through the Exchange server (assuming Exchange 2003) open Exchange System Manager and drill down to the 'Protocols' container beneath your Exchange Server. Expand SMTP and then view the properties of your SMTP Virtual Server. From here, you can go to the 'Access' tab, press 'Relay' and add the IP of the web server to allow it to relay.

-Matt
0
 
tigermattCommented:

Hey,

Any reason for the 'B' grade? Only that would indicate my solution didn't directly solve the problem for you.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now