?
Solved

send mail using exchange server in asp.net

Posted on 2009-05-04
3
Medium Priority
?
1,172 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 450 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 1050 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this video we show how to create an email address policy 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…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Suggested Courses

765 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