Solved

send mail using exchange server in asp.net

Posted on 2009-05-04
3
1,164 Views
Last Modified: 2013-12-17
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
Comment
Question by:itbUD
  • 2
3 Comments
 

Assisted Solution

by:unlocktechnology
unlocktechnology earned 150 total points
Comment Utility
you need to allow relaying on your exchange server.

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

Accepted Solution

by:
tigermatt earned 350 total points
Comment Utility

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
 
LVL 58

Expert Comment

by:tigermatt
Comment Utility

Hey,

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now