以编程方式发送电子邮件 [英] programatically sending email

查看:86
本文介绍了以编程方式发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

合适的人。


(我想在VB6中找到解决方案,因为这是我们有需要的应用程序

写入,但任何解决方案我会非常感谢.NET,因为我可以实例化它们,所以请原谅

交叉。)


我确定我曾经在这里看过帖子,然后批评为了编程发送电子邮件而自动化

前景的做法,理由是

it''是的。那么现在我们真的落在了它里面,它不仅仅是因为它。 IT

部门已经应用了一些安全补丁,这意味着我们的b $ b部门的一个人现在必须坐在那里大约10分钟不断点击

是弹出的消息框说外部程序正在尝试

使用Outlook发送电子邮件,你想允许这个吗?等等等等等等。

所以我绝望地需要找到一种不使用outlook发送电子邮件的方式,

而且我没有最模糊的!我听说过一些名为MIME的东西。 - 这是我需要使用的一系列API函数吗?

另一件事 - 配置。在我们的

网络中设置Outlook很容易 - 第一次加载配置文件时,你只需要告诉它交换服务器的名称

连接到(我们无法控制)

然后它就把它拿起来。可以用MIME(如果那是我需要使用的技术)

连接到交换服务器吗?


我相信我能理解一旦我知道了一般结构,所以任何

链接到基础知识都会非常感激,以及人们的经验

有常见的陷阱。如果可能的话,没有第三方控制,因为我们的IT部门必须授权这样的事情并且他们很可能会对他们产生怀疑。

但是如果我可以用这个

愚蠢的角落编程我们的方式,那肯定会给人留下深刻的印象,所以任何帮助都非常感谢!


谢谢

Right guys.

(I would like a solution to this in VB6 as this is what our needy app is
written in, but any solutions that involve .NET would be much appreciated
likewise as I could instantiate them, otherwise please forgive the
crossposting.)

I''m sure I''ve seen posts here before criticising the practice of automating
outlook for the purpose of programatically sending email, on the grounds that
it''s naff. Well now we''re really landed in it, it''s more than naff. The IT
department have applied some security patch, and it means that a guy in our
department now has to sit there for about 10 minutes constantly clicking
"yes" to the message box that pops up saying "an external program is trying
to use outlook to send email, do you want to allow this?, blah blah blah".
So I desparately NEED to find a way of sending email without using outlook,
and I haven''t got the foggiest! I''ve heard of something called "MIME" - is
this a load of API functions I need to be using?
One other thing - the configuration. It''s dead easy to set up outlook in our
network - when loading the profile for the first time, you just tell it the
name of the exchange server to connect to (which we don''t have control over)
and it picks it up. Can MIME (if that''s the technology I need to be using)
connect to an exchange server?

I''m sure I could understand it once I knew the general structure, so any
links to the basics would be much appreciated, aswell as people''s experience
with common pitfalls. No third party controls if possible, as our IT
department have to authorise things like that and they are mightily
suspicious of them.
But it would sure impress people if I could program our way out of this
stupid corner that IT have boxed us into, so any help is much appreciated!

Thanks

推荐答案

" Bonj" <博** @ discussions.microsoft.com> schrieb:
"Bonj" <Bo**@discussions.microsoft.com> schrieb:
所以我绝对需要找到一种发送电子邮件的方式
而不使用outlook,我也没有最模糊的!


发送和接收电子邮件

< URL:http://dotnet.mvps.org/dotnet/faqs/?id = email& lang = zh> ;

我听说过一些名为MIME的东西。 - 这是我需要使用的一系列API函数吗?
So I desparately NEED to find a way of sending email
without using outlook, and I haven''t got the foggiest!
Sending and receiving email
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=email&lang=en>
I''ve heard of something called "MIME" - is
this a load of API functions I need to be using?




MIME用于编码邮件附件,例如。
< br $> b $ b -

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



MIME is used for encoding mail attachments, for example.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Bonj,


见内联:

Bonj,

See inline:

我已经听说过MIME之类的东西 - 这是我需要使用的一大堆API函数吗?


MIME是多用途Internet邮件扩展的简称(我相信)。它是
是一种格式化消息内容的方式,它不是发送

的协议。

另一件事 - 组态。在我们的
网络中设置Outlook很容易 - 首次加载配置文件时,您只需告诉它
交换服务器的名称即可连接到(我们没有控制权)
然后它就把它拿起来。 MIME(如果这是我需要使用的技术)
连接到交换服务器?


如果您的交换服务器支持IMAP或POP3协议,我会建议您查看Indy项目:

http://www.indyproject.org


它有许多类可用于发送/接收邮件。

的事情是,它不会直接连接到Exchange,所以你必须通过POP3或IMAP连接器连接



希望这会有所帮助。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com

一旦我知道了,我肯定能理解它一般的结构,所以任何与基础知识的链接都会受到高度赞赏,以及人们的经验和常见的陷阱。如果可能的话,没有第三方控制,因为我们的IT部门必须授权这样的事情并且他们对他们非常怀疑。
但是如果我可以编程出路,它肯定会让人印象深刻这个
愚蠢的角落,IT盒装我们,所以任何帮助都非常感谢!

谢谢
I''ve heard of something called "MIME" - is
this a load of API functions I need to be using?
MIME is short for Multipurpose Internet Mail Extension (I believe). It
is a way of formatting content in messages, it''s not a protocol for sending
them.
One other thing - the configuration. It''s dead easy to set up outlook in
our
network - when loading the profile for the first time, you just tell it
the
name of the exchange server to connect to (which we don''t have control
over)
and it picks it up. Can MIME (if that''s the technology I need to be using)
connect to an exchange server?
If your exchange server supports the IMAP or POP3 protocols, I would
suggest looking at the Indy Project:

http://www.indyproject.org

It has a number of classes that you can use to send/receive mail. The
thing is, it won''t connect to Exchange directly, so you will have to connect
through the POP3 or IMAP connector.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
I''m sure I could understand it once I knew the general structure, so any
links to the basics would be much appreciated, aswell as people''s
experience
with common pitfalls. No third party controls if possible, as our IT
department have to authorise things like that and they are mightily
suspicious of them.
But it would sure impress people if I could program our way out of this
stupid corner that IT have boxed us into, so any help is much appreciated!

Thanks



Bonj

为了避免Outlook安全提示它通常最容易为Outlook 2003创建一个正确构造的COM-Addin

。还有其他方法

适用于其他版本的Outlook ...


请参阅:
http://msdn.microsoft.com/library/de...scomaddins.asp


更多信息请参见:
HTTP://www.slipsti ck.com/dev/ol2003problems.htm
http://www.slipstick.com/outlook/esecup/admin.htm


希望这有帮助

Jay

" Bonj" <博** @ discussions.microsoft.com>在消息中写道

新闻:A3 ********************************** @ microsof t.com ...
Bonj
To avoid the Outlook security prompts its generally easiest to create a
properly constructed COM-Addin for Outlook 2003. There are other methods
available for other versions of Outlook...

See:
http://msdn.microsoft.com/library/de...scomaddins.asp

Further info can be found at:
http://www.slipstick.com/dev/ol2003problems.htm
http://www.slipstick.com/outlook/esecup/admin.htm

Hope this helps
Jay
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
合适的人。

(我想在VB6中解决这个问题,因为这是我们需要的应用程序编写的,但是任何涉及.NET的解决方案都会非常感激
因为我可以实例化它们,否则请原谅
交叉插入。)

我肯定我已经在批评为了编程发送电子邮件的目的而自动化
前景的做法之前看过这里的帖子,其理由是
它是naff。那么现在我们真的落在了它里面,它不仅仅是因为它。 IT部门已经应用了一些安全补丁,这意味着我们的部门的一个人现在必须坐在那里大约10分钟不断点击
是。弹出的消息框说外部程序正在尝试
使用Outlook发送电子邮件,你想允许这个吗?等等等等等等。所以我绝望了需要找到一种不使用
outlook发送电子邮件的方式,
并且我没有最模糊的!我听说过一些名为MIME的东西。 - 这是我需要使用的一系列API函数吗?
另一件事 - 配置。在我们的
网络中设置Outlook很容易 - 首次加载配置文件时,您只需告诉它
交换服务器的名称即可连接到(我们没有控制权)
然后它就把它拿起来。 MIME(如果那是我需要使用的技术)
连接到交换服务器吗?

一旦我知道了一般结构,我肯定能理解它,所以任何链接到基础知识的人都会非常感激,以及人们经历的常见陷阱。如果可能的话,没有第三方控制,因为我们的IT部门必须授权这样的事情并且他们对他们非常怀疑。
但是如果我可以编程出路,它肯定会让人印象深刻这个
愚蠢的角落,IT盒装我们,所以任何帮助都非常感谢!

谢谢
Right guys.

(I would like a solution to this in VB6 as this is what our needy app is
written in, but any solutions that involve .NET would be much appreciated
likewise as I could instantiate them, otherwise please forgive the
crossposting.)

I''m sure I''ve seen posts here before criticising the practice of
automating
outlook for the purpose of programatically sending email, on the grounds
that
it''s naff. Well now we''re really landed in it, it''s more than naff. The IT
department have applied some security patch, and it means that a guy in
our
department now has to sit there for about 10 minutes constantly clicking
"yes" to the message box that pops up saying "an external program is
trying
to use outlook to send email, do you want to allow this?, blah blah blah".
So I desparately NEED to find a way of sending email without using
outlook,
and I haven''t got the foggiest! I''ve heard of something called "MIME" - is
this a load of API functions I need to be using?
One other thing - the configuration. It''s dead easy to set up outlook in
our
network - when loading the profile for the first time, you just tell it
the
name of the exchange server to connect to (which we don''t have control
over)
and it picks it up. Can MIME (if that''s the technology I need to be using)
connect to an exchange server?

I''m sure I could understand it once I knew the general structure, so any
links to the basics would be much appreciated, aswell as people''s
experience
with common pitfalls. No third party controls if possible, as our IT
department have to authorise things like that and they are mightily
suspicious of them.
But it would sure impress people if I could program our way out of this
stupid corner that IT have boxed us into, so any help is much appreciated!

Thanks



这篇关于以编程方式发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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