简体   繁体   中英

Auto generated email In Oracle JET

I am creating an Oracle JET application in which I want to send an email to the user containing the user password when they click Forgot Password . I tried this using mailto: but it opens the mail client. I want the application to send mail without opening the mail client. Can someone please explain how this could be done. Can this be done only by using RESTful web services? Thank you.

Sending a mail requires a server-side action, ie connecting to an SMTP server. So if your RESTful web service is written in a language that supports SMTP, then yes you can do it. For example: http://www.journaldev.com/2532/javamail-example-send-mail-in-java-smtp

It has nothing to do it with Oracle-JET, which is just a UI framework.

PS If you absolutely want to use client-side JavaScript just for the fun of it this answer shows how. But as the comments on it say, it's a complete breach of security.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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