Click here to Skip to main content
15,917,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have send mail page in asp.net application. I want to create a log file for sending mail.
Because I want to create record for email being send from my application..

What could be excellent way to achieve this task.. Please suggest ..
Posted
Comments
deepakaitr12345 22-Jan-13 8:15am    
I think the Log4net is best for this you can use both(fileappender for text file and AdoNetAppender for database) the appender to log the records either in the data base or in file.

Thanks

1 solution

You can either use a txt file and keep adding the time the mail was sent, the email id that it was sent to etc.
or you can use an XML file, but i guess the best way would be to keep appending the new data into a txt file.
If you are using a website, then create the file in your Server.
 
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