如何向电子邮件订阅者发送自动通知 [英] how to send automatic notification to email subscribers

查看:255
本文介绍了如何向电子邮件订阅者发送自动通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我是asp.net的新手..

任何人都可以告诉我如何向订阅用户发送自动电子邮件..

就像管理员在他们的网站上发布新内容一样,用户应该自动通知
..



可以解释任何一个我用示例编码...



提前感谢...

hi..
I'm new to asp.net..
can anyone tell me how to send automatic email to subscribed users..
like when the admin posted new things in their website, user should be
notified automatically..

can any one explain me with example coding...

thanks in advance...

推荐答案

有一对方法。您可以在ASP.Net站点中拥有代码,当用户执行某些操作时,它会发送电子邮件。



另一种方法是编写一个不断寻找的Windows服务在数据库表中查看需要处理的内容然后让它发送电子邮件,ASP.Net应用程序会将事件写入该表。



发送电子邮件有很多使用System.Net.Mail命名空间和SMTPClient类的在线示例。



http://msdn.microsoft.com/en-us/library/vstudio/system.net.mail [ ^ ]
There are a couple of approaches. You can have code in your ASP.Net site that when a user does something it sends an email.

The other approach is to write a windows service that is constantly looking at a database table to see what needs to be processed and then have it send the emails and your ASP.Net app will write events to that table.

To send emails there are tons of example online using the System.Net.Mail namespace and SMTPClient class.

http://msdn.microsoft.com/en-us/library/vstudio/system.net.mail[^]


这篇关于如何向电子邮件订阅者发送自动通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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