不使用Web服务自动发送电子邮件 [英] Automatically send email without using webservice
本文介绍了不使用Web服务自动发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个网站,我希望在该网站中自动向客户发送电子邮件,但我不知道c#中的代码,因此请为此提供帮助...
谢谢.
Bhupendra
I am developing a website in which i want to send emails to customers automatically, but i do not know the code for that in c#, so please help me for that...
Thanking You.
Bhupendra
推荐答案
要发送电子邮件,请查看此Microsoft Video教程:
使用ASP.NET发送来自网站的电子邮件 [在ASP.NET中发送电子邮件的教程 [在以下位置发送电子邮件带有或不带有附件的C#:通用例程. [
For sending email, have a look at this Microsoft Video tutorial:
Use ASP.NET to send Email from Website[^]
Tutorials on sending Email in ASP.NET[^]
Have a look at this tip too: Sending an Email in C# with or without attachments: generic routine.[^]
使用system.net或system.webmail发送自动邮件,而无需使用Web服务.
谢谢
Tapan kumar
Hi,
Use system.net or system.webmail for sending automated mails, without using web services.
Thanks
Tapan kumar
如果要从ASP.Net发送邮件,可以使用SmtpClient对象.
如果您正在寻找一种自动调度程序,则有以下三种方式
1.编写一个控制台应用程序,该应用程序从db(或任何存储)中读取数据(主题,内容,电子邮件ID)并发送邮件(再次使用SmtpClient).现在,使用Windows Scheduler调度此应用程序.
2.如果要在基于数据库条目的系统上编写一个触发器,然后从那里调用SP,它可以发送邮件.
3.写一个windoes服务.
希望能给出方向.如果有帮助,则将其标记为添加/升级.
谢谢
Milind
If you want to send mail from ASP.Net, you can use SmtpClient object.
In case you are looking for a automatic scheduler kind of program, there are three ways
1. Write a console application which reads data (subject,content,email id) from db (or any storage) and send mail (again using SmtpClient). Now schedule this application using a windows scheduler.
2.If you want on database entry based system, write a trigger and from there call SP which can send out a mail.
3.Write a windoes service.
Hope that gives direction. If it helps mark it as asnwer/upvote.
Thanks
Milind
这篇关于不使用Web服务自动发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文