Topic: Error - Mailbox unavailable. The server response was 5.7.1 unable to relay for
This happens when your SMTP is not configured to your localhost
1. Open IIS
2. Right-click on "Default SMTP Virtual Server" and select "Properties"
3. Click on the "Access" tab
4. Click on the "Relay..." button
5. Click the "Add..." button
6. Enter "127.0.0.1" for your localhost account
7. Click "OK", "OK", "OK"
8. Try your app
You'll need to make sure the following tags in BLUE are in your Web.Config
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString=
"Data Source=MySource;
 Initial Catalog=MyAp;

Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<authentication mode="Forms"/>
<compilation debug="true"/></system.web>
<system.net>
<mailSettings>
<smtp from="admin@mysite.com">
<network host="localhost" password="" userName=""/>
</smtp>
</mailSettings>
</system.net>
</configuration>