电子邮件发送没有把密码进入code [英] email sent without putting the password into the code

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

问题描述

反正是有得到不把密码进入code发送的电子邮件?

Is there anyway to get an email sent without putting the password into the code ?

有许多电子邮件API-S,使与输入用户名和密码发送电子邮件。

There are many email api-s that enables to send an email with entering the username and password.

sendEmail("myemail@gmail.com","mypass","subject","msg body"); 

有没有解决硬编码在code中的密码?

Is there any way around the problem with hard-coding the password in code ?

推荐答案

您有三种选择发送电子邮件:

You have three options to send email:


  1. 您包括您的电子邮件和密码进入code,在这种情况下,
    应用程序将发送电子邮件从这个电子邮件地址。

  2. 您可以要求用户输入他的凭据,他的电子邮件,并在此
    如果您将从用户的地址接收邮件。

  3. 您可以形成你的应用程序的意图,将填补neccessary
    领域和呼叫用户的电子邮件客户端发送这一点。

如果您想沉默的方式发送电子邮件,那么你应该选择1或2,但更安全的方法是使用第三种方法。

If you want silent way to send email then you should choose 1 or 2. But more secure way is to use the third approach.

这篇关于电子邮件发送没有把密码进入code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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