Click here to Skip to main content
15,915,734 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a website, where I want to implement Login controls. All the Controls are working properly except Password Recovery control.

The control is generating an error. Error is as follows

A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.

I don't now what to do.
please help me.
Posted

1 solution

I think thats happening because you are trying to send an email via SmtpClient class. It is trying to look up the from address for this MailMessage from the property or config section and could not able to find it there. You can specify the From address when you call Send() or with the From property of MailMessage or in the config file. The System.Net config section is defined at MSDN[^]. You can also check this link[^] as well.

Good luck,
OI
 
Share this answer
 
Comments
[no name] 24-Feb-12 13:08pm    
thank you so much
[no name] 24-Feb-12 13:14pm    
link is for Access Provider can you please give me any link for SQL Connection Provider.[ADO.NET]
MSDN is not clear..
If possible please give me the full step that can help me to active the Passwordrecovery Control.
Once again Thank you so much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900