如何创建发送电子邮件的日志文件。 [英] How to create log file for sending email.

查看:83
本文介绍了如何创建发送电子邮件的日志文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在asp.net应用程序中发送邮件页面。我想创建一个发送邮件的日志文件。

因为我想创建从我的应用程序发送的电子邮件的记录..



有什么可能是实现这个任务的好方法..请建议..

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 ..

推荐答案

您可以使用txt文件并继续添加邮件发送的时间,它被发送到的电子邮件ID等。

或者您可以使用XML文件,但我想最好的方法是将新数据附加到txt文件中。

如果您使用的是网站,请在服务器中创建该文件。
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.


这篇关于如何创建发送电子邮件的日志文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆