简体   繁体   English

SmtpJS 完全保护凭据?

[英]SmtpJS completely securing credentials?

I am trying to send an email using my smtp server and SmtpJS.我正在尝试使用我的 smtp 服务器和 SmtpJS 发送 email。 The problem is that even when using a secureToken generated on their website someone can just go to the sources, modify the destination email and practically send an email to someone pretending it's me.问题是,即使使用在他们的网站上生成的secureToken,也有人可以将 go 更改为源,修改目标 email 并实际上将 email 发送给假装它的人。 How can I set a permanent email address that my server can send emails to?如何设置我的服务器可以向其发送电子邮件的永久 email 地址? Hope I'm clear enough.希望我足够清楚。 Here is the example from smtpjs.com这是来自smtpjs.com的示例

Email.send({
    SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
    To : 'them@website.com',
    From : "you@isp.com",
    Subject : "This is the subject",
    Body : "And this is the body"
}).then(
  message => alert(message)
);

Try following these tutorials, preferably with a burner email account.尝试按照这些教程进行操作,最好使用刻录机 email 帐户。 I can't guarantee they'll work.我不能保证他们会工作。

https://kaustubh72.medium.com/send-e-mails-with-smtp-js-a8e07e1d0b6b https://kaustubh72.medium.com/send-e-mails-with-smtp-js-a8e07e1d0b6b

https://hamzafarooq951.medium.com/send-e-mails-in-javascript-with-smtp-js-detailed-guide-5ab92cde7c49 https://hamzafarooq951.medium.com/send-e-mails-in-javascript-with-smtp-js-detailed-guide-5ab92cde7c49

If you manage to figure it out, let me know as I am also in the same predicament as you.如果您设法弄清楚,请告诉我,因为我也和您处于同样的困境中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM