如何在asp.net中创建动态电子邮件 [英] how to create dynamic email in asp.net

查看:68
本文介绍了如何在asp.net中创建动态电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此应用程序的目的是创建电子邮件模板(标题,主题,正文)并将其存储到数据库表中.当需要发送电子邮件时,应用程序查询数据库表并从数据库表中获取电子邮件的主题和正文.电子邮件还与特定的数据库记录相关联,因此这些记录中的字段可以在电子邮件中使用.
电子邮件主题和电子邮件正文可能包含动态参数.发送电子邮件时,这些参数将替换为实际值.这些动态参数的目的是允许对电子邮件进行个性化设置,而不是发送通用电子邮件.动态参数在SQL表中可用.创建电子邮件模板时,可以将参数放在主题或正文中.实际发送电子邮件时,应将动态参数替换为实际值.实际值在数据库表中可用.
发生事件时将发送电子邮件.示例:用户从网站提交票证.票证已分配给技术人员.门票由技术人员关闭.当这些事件发生时,如果有与该事件关联的电子邮件模板,则必须将电子邮件发送出去.

The purpose of this application is to create an email template (title, subject, body) and store it into a database table. When an email is needed to be sent, the application queries the database table and gets the subject and body of the email from the database table. The emails are also associated to specific database records and therefore fields from these records may be used in the email.
The email subject and body of the email may contain dynamic parameters. These parameters are replaced with actual values when sending out the email. The purpose of these dynamic parameters is to allow the email to be personalized instead of sending a generic email. The dynamic parameters are available in the SQL table. When creating the email template, the parameters may be placed in the subject or body. When the email is actually sent out the dynamic parameter should be replaced with actual values. The actual values are available in a database table.
An email is sent when an event occurs. Example: User submits a ticket from a web site. A ticket is assigned to a technical staff. A ticket is closed by technical staff. When these events occur, if there is an email template associated to that event, the email must be sent out.

推荐答案

简单的CP或Google对此已足够搜索. .无论如何,我都会在Google&中找到这些CP

发送包含动态内容的电子邮件 [ ^ ]

使用SQL Server Job Schedular的自动电子邮件通知 [ ^ ]

电子邮件模板 [
Simple CP or Google search enough for this...Any way I found these in Google & CP

Sending Emails with Dynamic Content[^]

Automated Email Notifications using SQL Server Job Schedular[^]

Email Templates[^]


这篇关于如何在asp.net中创建动态电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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