Console App电子邮件 [英] Console App Email
问题描述
我需要一个控制台应用程序给我发电子邮件....
过去我使用SQL Server的邮件发送我的
$ b $用于控制台应用程序的电子邮件,但通常SQL Server
邮件将不会被发送,因为SQL Server
超时....在我的网页中我使用Web MailMessage
对象,它做得非常好....我可以在控制台应用程序中使用Web
MailMessage对象,如果是这样的话怎么做
我设置了它,如果不是除了SQL之外还有什么选项
服务器的邮件消息?
谢谢,
Adam
Adam< an ******* @ discussion.microsoft.com>写道:我需要一个控制台应用程序给我发电子邮件....过去我用SQL Server的邮件发送给我了
用于控制台应用程序的电子邮件,但SQL Server
邮件通常不会被发送,因为SQL Server会超时....在我的网页中我使用了Web MailMessage
对象,它确实很好....我可以在控制台应用程序中使用Web
MailMessage对象,如果是这样的话我是如何设置它的,如果不是除了SQL之外还有什么选项
服务器的邮件消息?
是的,您可以在控制台应用程序中使用MailMessage - 但因为它使用了
CDO,关于它将运行的平台有一些限制。
您可以随时使用Indy: http://www.indyproject.org
-
Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复该群组,请不要给我发邮件
Jon Skeet [C#MVP]< sk *** @ pobox.com>写在
新闻:MP ************************ @ msnews.microsoft.c om:您可以随时使用Indy: http://www.indyproject.org
这里还有一个Indy的C#SMTP演示:
http://www.atozed.com/indy/
-
Chad Z. Hower(又名Kudzu) ) - http://www.hower.org/Kudzu/
编程是一种反击的艺术形式
使用IntraWeb让你的ASP.NET开始工作!
http://www.atozed.com/IntraWeb/
< blockquote>在诸如
csharp-corner等网站上也有大量的原生smtp客户端示例.Indy很好,但需要可能的库对于你的发行版来说,这是
矫枉过正。
-
William Stacey,MVP
亚当 <一个******* @ discussions.microsoft.com>在消息中写道
news:f2 **************************** @ phx.gbl ... < blockquote class =post_quotes>我需要一个控制台应用程序给我发电子邮件....过去我用SQL Server的邮件发送我的
电子邮件对于控制台应用程序,但SQL Server
邮件通常不会被发送,因为SQL Server会超时....在我的网页中我使用Web MailMessage
对象,它非常好....我可以在控制台应用程序中使用Web
MailMessage对象,如果是这样的话我是如何设置的,如果不是除了SQL之外还有什么选项
服务器邮件是什么?
谢谢,
Adam
I need a console application to send me an e-mail....in
the past I have use SQL Server''s mail messaging to send my
e-mails for console applications, but often the SQL Server
mail message will not get sent because the SQL Server
times out....In my web pages I use the Web MailMessage
object, and it does very well....Can I use the Web
MailMessage object in a console application, if so how do
I set it up, if not what options are there other than SQL
Server''s mail messaging?
Thanks,
Adam
Adam <an*******@discussions.microsoft.com> wrote:I need a console application to send me an e-mail....in
the past I have use SQL Server''s mail messaging to send my
e-mails for console applications, but often the SQL Server
mail message will not get sent because the SQL Server
times out....In my web pages I use the Web MailMessage
object, and it does very well....Can I use the Web
MailMessage object in a console application, if so how do
I set it up, if not what options are there other than SQL
Server''s mail messaging?
Yes, you can use MailMessage in a console app - but because it uses
CDO, there are a few restrictions about platforms it will run on.
You could always use Indy: http://www.indyproject.org
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jon Skeet [C# MVP] <sk***@pobox.com> wrote in
news:MP************************@msnews.microsoft.c om:You could always use Indy: http://www.indyproject.org
There is a C# SMTP demo of Indy here as well:
http://www.atozed.com/indy/
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
There are also tons of native smtp client examples on sites like
csharp-corner, etc. The Indy is good, but required the library which may be
overkill for your distribution.
--
William Stacey, MVP
"Adam" <an*******@discussions.microsoft.com> wrote in message
news:f2****************************@phx.gbl...I need a console application to send me an e-mail....in
the past I have use SQL Server''s mail messaging to send my
e-mails for console applications, but often the SQL Server
mail message will not get sent because the SQL Server
times out....In my web pages I use the Web MailMessage
object, and it does very well....Can I use the Web
MailMessage object in a console application, if so how do
I set it up, if not what options are there other than SQL
Server''s mail messaging?
Thanks,
Adam
这篇关于Console App电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!