@Query(value = "Select folder_id, name, parent From folders f Where f.parent = ?1", nativeQuery = true)
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: folders is not mapped [Select folder_id, name, parent From folders f Where f.parent = ?1]
Stephan van Hulst wrote:Sorry, I missed your reply. Did you manage to make progress in the meantime?
Tim Holloway wrote:You basically just have to set all of the properties with values appropriate to the mailserver that you will be sending through. Same as with gmail, but each of those services has their own host address, port, security prototocols and connection credentials.
Stephan van Hulst wrote:Mike is supposed to use Retrofit2 to send REST requests from Android to the Spring service, and the Spring service uses OAuth to access Gmail.
Bob Winter wrote:From as far as I know and understand ...
Tim Holloway wrote:However, on an Android app, you probably shouldn't be sending email directly, but rather contacting the email/gmail intent.
Stephan van Hulst wrote:Yes, using OAuth should allow access to your mail server without having to "Allow less secure app access".
Tim Moores wrote:If for some reason no user interaction is desired, have the app contact a REST service on your server with the relevant details, and then the server can send out mails.