Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Servers > BOOK: Professional IIS 8
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional IIS 8
This is the forum to discuss the Wrox book Professional Microsoft IIS 8 by Ken Schaefer, Jeff Cochran, Scott Forsyth, Dennis Glendenning, Benjamin Perkins; ISBN: 978-1-118-38804-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional IIS 8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 4th, 2012, 11:14 AM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2010
Location: Houston, TX
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via AIM to rexcampbell
Default Issue with server relaying mail to a gmail or hotmail account

I was wondering if there needs to be any configuring done on IIS 8 for relaying mail from a .Net website to a client with an external site email address. I have created a website that allows potential employees to submit their information about job openings and have a confirmation email sent back to the email address they have provided. It works fine with internal addresses, but an email address from gmail, hotmail, or etc gives me an error.

I've been getting an error message {The server response was: 5.7.1 Unable to relay} and as far as I can tell through research, its not my code, but an issue on the server. I could be wrong, but if thats the case, there must be some configuration I need to do on the server and what section would it be in. Let me know if I need to provide any more information.

Thanks,
Rex
Reply With Quote
  #2 (permalink)  
Old May 19th, 2013, 04:51 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is not unusual. The email server, often Exchange, needs to be set to allow a relay from the email address or domain your email is being sent from by your code. Or, there is a firewall blocking your relay (less likely).

In many corporate settings, the email system is only set to accept mail from internal clients. If your email address that your code is sending from is not allowed to relay, you get this result. The setting is meant to prevent exactly what you're trying to do, allow a spoofed internal client to relay email through the server. This would allow any spam bot to send email from your corporate network, getting it blacklisted.

The solution is simple, you, or your email admin, needs to configure your email server to relay mail from your web code. Specifics depend on the server you're using, how your site/domain are configured and a number of other things, you may need to try a group that supports your mail server.

Jeff
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem sending email via gmail and hotmail morteza BOOK: Beginning ASP.NET 4 : in C# and VB 15 May 16th, 2010 12:02 AM
Webmail(hotmail,gmail,yahoo,ect..) contacts reader dv.rameshkumar ASP.NET 3.5 Professionals 0 May 8th, 2009 01:39 AM
help ( open mail account) merawa C# 2005 2 March 5th, 2008 10:51 AM
Open email from yahoo or hotmail server wehave74 VB How-To 1 December 23rd, 2006 03:49 AM
Encoding problem with automatic mail on hotmail robbielove ASP.NET 2.0 Professional 0 April 28th, 2006 07:48 AM



All times are GMT -4. The time now is 02:27 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.