Hi All
I am using ASP.NET 3.5 on Windows Vista.
I am tryin to add a new user to the site using the ASP.NET CreateUserWizard.
I believe IIS 7.0 doesn;t come with a SMTP Server so I downloaded one from
http://softstack.com/freesmtp.html
My web config looks like this:-
Code:
<system.net>
<mailSettings>
<smtp>
<networkdefaultCredentials="false"host="localhost"port="25"/>
</smtp>
</mailSettings>
</system.net>
The error I am getting is:-
[code]
Server Error in '/Reservation' Application.
Mailbox unavailable. The server response was: Invalid recipient: [email protected]
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: Invalid recipient: [email protected]
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SmtpException: Mailbox unavailable. The server response was: Invalid recipient: simonjones@gmail.com] System.Net.Mail.DataStopCommand.CheckResponse(Smtp StatusCode statusCode, String serverResponse) +1052359 System.Net.Mail.DataStopCommand.Send(SmtpConnectio n conn) +38 System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args) +8 System.Net.ClosableStream.Close() +53 System.Net.Mail.MailWriter.Close() +53 System.Net.Mail.SmtpClient.Send(MailMessage message) +1480 System.Web.UI.WebControls.LoginUtil.SendPasswordMa il(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner) +367 System.Web.UI.WebControls.CreateUserWizard.Attempt CreateUser() +547 System.Web.UI.WebControls.CreateUserWizard.OnNextB uttonClick(WizardNavigationEventArgs e) +102 System.Web.UI.WebControls.Wizard.OnBubbleEvent(Obj ect source, EventArgs e) +418 System.Web.UI.WebControls.CreateUserWizard.OnBubbl eEvent(Object source, EventArgs e) +161 System.Web.UI.WebControls.WizardChildTable.OnBubbl eEvent(Object source, EventArgs args) +19 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +166 System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
[\CODE]
Please help me.
Kind Reards,
Akshay