PDA

View Full Version : مشکل در passwordRecovery



mehr83
جمعه 24 اسفند 1386, 00:22 صبح
وقتی از این کنترل استفاده می کنم با این خطا مواجه میشم در هاست


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.Web.HttpException: A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.

Source Error:


----------------------------------------------------------------------
فروش ويژه مجموعه كامل محصولات آموزش برنامه نويسي AppDev
Asp.NET , Visual Basic.NET , Visual C#.NET , SQL Server 2008 , Web Service , LINQ , Html , Xml , SharePoint
اطلاعات بيشتر در
http://sadrasystem.org (http://sadrasystem.org/)

چیکار باید بکنم اصلا بلد نیستم

miladr
جمعه 24 اسفند 1386, 00:51 صبح
شما باید تو webconfig تنظیمات ایمیلت رو انجام بدی تا بشه واسه کاربر ها ایمیل ارسال بشه.
تنظیماتم با یکم جستجو می یابی

mehr83
جمعه 24 اسفند 1386, 02:13 صبح
من کد هاشو بلد نیستم
میشه بذارین اینجا

----------------------------------------------------------------------
فروش ويژه مجموعه كامل محصولات آموزش برنامه نويسي AppDev
Asp.NET , Visual Basic.NET , Visual C#.NET , SQL Server 2008 , Web Service , LINQ , Html , Xml , SharePoint
اطلاعات بيشتر در
http://sadrasystem.org (http://sadrasystem.org/)

miladr
جمعه 24 اسفند 1386, 03:53 صبح
<system.net>
<mailSettings>
<smtp from="passrecover@yourdomain.com">
<network host="mail.yourdomain.com" password="yourpass" port="110" userName="passrecover@yourdomain.com"/>
</smtp>
</mailSettings>
</system.net>