Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,


This application user login to internet. When ever user updated his detail, how to get mail user to me.

I used this code in web.config:

<appsettings>
    <add key="UserCode" value="E999" />
    <add key="ReceiverMailId" value="xxxxx@gmail.com" />
  </appsettings>
<system.net>
    <mailsettings>
      <smtp from="xxxxx@gmail.com">
        <network host="smtp.gmail.com" password="xxxwwww" port="465">
          userName="xxxxx@gmail.com" />
      </network></smtp>
    </mailsettings>
  </system.net>


This code is not working. If I am wrong please correct it.
Posted
Updated 30-May-12 9:38am
v2
Comments
OriginalGriff 30-May-12 15:02pm    
Why would you want the user to log in to your website, in order to send you an email to change his details?
Why not just get the detail changes from him directly into a page, and then update your database directly? You can send him a confirmation link to his email address just like you do for registration if you need to.
2011999 30-May-12 21:40pm    
we develop a application. this application host in internet. presently working on intranet. this application developed in asp.net using csharp.
Sandeep Mewara 30-May-12 16:46pm    
Config looks ok.
Elaborate 'This code is not working.' - any error?
2011999 30-May-12 21:39pm    
not display any error

1 solution

To get you started see

Solution 1
 
Share this answer
 

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