Hello,
I would like to be able to send e-mail from a Web app I am developing in
BaseX and was wondering whether anyone else had implemented this
functionality (or whether a BaseX e-mail module might be in the works?).
I see that Zorba has an e-mail module with support for SMTP and IMAP (not
to mention many other useful modules), which leads me to wonder whether
anyone has worked on a BaseX connector for Zorba.
In the meantime, I decided to try using the BaseX process module to call
Zorba, like so:
proc:system(
'zorba', (
'-q', convert:binary-to-string(
db:retrieve(
'out', 'email.xq'
)
)
)
)
I stored the XQuery code for Zorba as a raw file in the BaseX database,
since storing it in the webapp directory caused an error, due to the
unrecognized Zorba module declarations. This approach seems to work
adequately, but does anyone have any suggestions for improvement, or a
different approach?
Thanks in advance,
Tim
--
Tim A. Thompson
Metadata Librarian (Spanish/Portuguese Specialty)
Princeton University Library