Solved

send mail using exchange server in asp.net

Posted on 2009-05-04
3
1,169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Assisted Solution

by:unlocktechnology
unlocktechnology earned 150 total points
ID: 24293666
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
ID: 24293703

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
ID: 24294028

Hey,

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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