如何创建一个应用程序来接收未登录我的帐户的电子邮件? [英] How to create an application to receive email that doesnt log-in my account?

查看:135
本文介绍了如何创建一个应用程序来接收未登录我的帐户的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望收到使用我的应用程序的用户的电子邮件,但是当用户向我发送电子邮件时,我不想登录我的帐户(即我的代码不包含我的用户和密码).我想保护我的帐户(C#代码非常容易撤消,因此,如果我将我的帐户放入代码中,那么反向者将撤消它,我将会丢失我的帐户).这个怎么做?谢谢.

I want to receive email from users who use my application, but I don''t want to log-in my account when users send email to me (i.e. my code doesn''t contain my user and my password). I want to protect my account (the C# code is very easy to reverse, so if I put my account in the code then the reversers will reverse it, I will be lost my account). How to do this? Thanks.

推荐答案

对于所编写的应用程序或与此相关的其他事情,您不是很明确,但是...

在Windows Forms应用程序中,如果启动形式为"mailto:"的URI,它将启动USERS默认电子邮件程序包,并使用USERS默认电子邮件帐户,而不是您的帐户!如果将电子邮件软件包设置为要求用户提供凭据,它将期望用户的电子邮件帐户使用USERS凭据,而不是您的!

如果您在客户端的HTML中提供"mailto:"链接,也会发生同样的事情.

如果要在服务器端编写一些邮件发送代码,则必须具有ASP.NET帐户可用于发送电子邮件的电子邮件帐户凭据,而不是用户.
You''re not being very specific about what kind of application you''re writing or anything else for that matter, but...

In a Windows Forms app, if you launch a URI of the form "mailto:", it''ll launch the USERS default email package and use the USERS default email account, NOT YOURS! If the email package is setup to ask for the users credentials, it''ll expect the USERS credentials for their email account, NOT YOURS!

The same thing happens if you provide a "mailto:" link in HTML on the client side.

If you''re writing some mail sending code on the server-side, then it''ll have to have credentials for an email account that the ASP.NET account can use to send emails, NOT THE USERS.


这篇关于如何创建一个应用程序来接收未登录我的帐户的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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