如何使用SQL Server,C#,ASP.NET在数据库中存储电子邮件内容的副本 [英] How to store copy of email contents in database using SQL server, C#, ASP.NET

查看:59
本文介绍了如何使用SQL Server,C#,ASP.NET在数据库中存储电子邮件内容的副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了web应用程序,发送来自asp.net的电子邮件,c#。

我想将电子邮件的副本(发件人,收件人,内容)存储在数据库SQL中表格供将来参考。

使用从asp.net,c#发送的相同内容和行间距,逗号,分号,从数据库SQL表中恢复电子邮件。

收到的内容可以用PDF或其他文件格式显示。

请理解任何解决方案。

谢谢和问候

Ramachandran。



我的尝试:



要存储在数据库中的电子邮件

Hi I have created web application with sending emails from asp.net,c#.
I want to store the copy of the email(sender,receiver,content) in database SQL table for future reference.
Rerieve the email from the database SQL table with the same content and line spaces,commas,semicolon ,that was sent from asp.net,c#.
Rerieved content can be displayed in PDF or some other file type.
Please any solution is appreciated.
Thanks and Regards
Ramachandran.

What I have tried:

email to be stored in database

推荐答案

您可以在调用send方法之前将所有外发电子邮件存储在数据库中。

创建包含列的列表到,cc,主题,正文和存储其中的所有细节。

在需要时检索信息并以所需格式显示。
You can store all your outgoing email in database before calling send method.
Create Table having columns like to,cc,subject,body and store all details in it.
Retrieve information whenever you require and display in desire format.


这篇关于如何使用SQL Server,C#,ASP.NET在数据库中存储电子邮件内容的副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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