一无所知即发送电子邮件 [英] Send email while knowing nothing

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

问题描述

我想从我的VB.NET程序自动发送错误报告。我不会知道最终用户的smtp服务器或他们正在使用的电子邮件客户端。


带有mailto的Process.Start几乎我需要什么,但是适合身体的

信息量对于堆栈转储和其他

信息来说太小了。


我喜欢它进入发件箱的方式,但哦,好吧,必须继续前进。


我的下一个选择是Indy或System.Web.Mail,但是我不知道他们的SMTP服务器。


我可以从注册表或其他方法获取它吗?

的程序如何允许我通过电子邮件注册支持呢?他们是否访问自己的

SMTP服务器?

解决方案

John,


如果这是关于在他的计算机上使用你的程序的用户而不是在

我认为如果用户没有先参加并且

正确的话,那就是一种黑客攻击拒绝该消息。


如果它是关于在您的服务器上运行的Web应用程序,那么您可以从该服务器发送




我希望这会有所帮助,


Cor


你好John

我现在处于类似情况(仅限VB6

项目)我想在我们的产品目录中向我们的产品管理员发送一些报告时

项目错了。


首先我去了本地安装的电子邮件客户端,然后我使用了

freevbcode的vbsendmail.dll他们都工作了但是一如既往地在那里

瑕疵

(不与你合作tloook,Domino,密封网络等等)


然后我找到了完美的解决方案:-)


i写了一个webservice(和网页)作为我的vb6编程的包装器,

执行电子邮件的发送,所以我将所需的值发布到我的

webservice webservice创建一个很好的HTML格式电子邮件并将其从网络服务器发送到端点。


使用此方法最终用户甚至不需要拥有电子邮件帐户

发送邮件给我们的产品管理

如果你想了解更多信息请随时询问

问候


Michel Posseth

" John Davies" <乔******** @ discussions.microsoft.com> schreef in bericht

新闻:1C ********************************** @ microsof t.com ...

我想从我的VB.NET程序中自动发送错误报告。我不会知道最终用户的smtp服务器或他们正在使用的电子邮件客户端。

带有mailto的Process.Start几乎是我所需要的,但是
适合身体的信息太小,无法进行堆栈转储和其他信息。

我喜欢它进入发件箱的方式,但是哦,不得不移动

我的下一个选择是Indy或System.Web.Mail,但我不知道他们的SMTP服务器。 />
我可以从注册表或其他方法获取它吗?那些允许我通过电子邮件注册支持的程序是如何做到的?他们是否访问自己的SMTP服务器?



Michael,


有一个缺点,用户不应该在防火墙后面并且在

行。


我认为还需要私有声明,我不确定这是否所有法律允许你做什么(如果

用户没有明确知道)。

你的情况当然不是这种情况,因为它是一种

内部申请。


Cor

I want to send a bug report automatically from my VB.NET program. I won''t
know the end user''s smtp server or what email client they are using.

The Process.Start with mailto is almost what I need, but the amount of
information that will fit in the body is too small for a stack dump and other
information.

I like the way that it would go into the outbox, but oh well, have to move on.

My next choice is Indy or System.Web.Mail, but I don''t know their SMTP server.

Can I get it from the registry or some other method? How do programs that
allow me to register for support from email do it? Do they access their own
SMTP servers?

解决方案

John,

If this is about a user using your program on his computer than this is in
my opinion a kind of hacking if the user is not attended first and has the
right to deny that message.

If it is about a webapplication working on your server, than you can sent it
from that server.

I hope this helps,

Cor


Hello John
I was in a simular situation as you are right now ( only with a VB6
project ) i wanted to send some reports to our product manageres when the
items in our catalogue were wrong.

first i shelled out to the local installed e-mail client , then i used the
freevbcode`s vbsendmail.dll they worked both but as always both with there
flaws
( not working with outloook , Domino , sealed networks etc etc etc )

then i found the perfect solution : :-)

i wrote a webservice ( and webpage as a wrapper for my vb6 prog ) that
performs the sending of the e-mail , so i post ther required values to my
webservice the webservice creates a nice HTML formatted e-mail and sends it
from the webserver to the endpoint .

with this method the end user does not even need to have an e-mail account
to send mails to our product management
if you want more info feel free to ask
regards

Michel Posseth
"John Davies" <Jo********@discussions.microsoft.com> schreef in bericht
news:1C**********************************@microsof t.com...

I want to send a bug report automatically from my VB.NET program. I won''t
know the end user''s smtp server or what email client they are using.

The Process.Start with mailto is almost what I need, but the amount of
information that will fit in the body is too small for a stack dump and
other
information.

I like the way that it would go into the outbox, but oh well, have to move
on.

My next choice is Indy or System.Web.Mail, but I don''t know their SMTP
server.

Can I get it from the registry or some other method? How do programs that
allow me to register for support from email do it? Do they access their
own
SMTP servers?



Michael,

With one disadvantage, the user should not be behind a firewall and be on
line.

In my opinion is needed a privaty statement as well, I am not sure if this
what you do is allowed by all laws (if it is not explicitly known by the
user).

What is in your case of course not the situation because it is a kind of
internal application.

Cor


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

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