Dear all,
I am trying to use a basex Email module http://files.basex.org/modules/org/basex/modules/email/EMail.jar. I downloaded a new basex instance (9.6 version) and added this jar to lib directory. Based on the xquery/email.xq file I created the following file:
import module namespace email = 'http://basex.org/modules/email/EMail';
let $mail := <email> <from>myuser@machine-office</from> <to>myuser@machine-office</to> <host>localhost</host> <subject>Hello!</subject> <message>Enjoy</message> </email> return email:send($mail)
While running the file I obtain:
Stopped at /home/myuser/Downloads/basex/file, 12/13: [XPTY0004] javax.activation.DataSource. Caused by: org.basex.modules.email.EMail:send(element()).
What's the problem? Shouldn't I use this module?
BR