Hi Christian,

 

I’m having trouble installing the BaseX email module. The install appears to succeed but then the module is not available.

 

BaseX 8.4 beta 2fabc36 [Standalone]

Try 'help' to get more information.

> repo install http://files.basex.org/modules/org/basex/modules/email/EMail.jar

Package 'http://files.basex.org/modules/org/basex/modules/email/EMail.jar' installed in 1556.4 ms.

> repo list

Name  Version  Type  Path

-------------------------

 

0 package(s).

 

After attempting to install the module, when trying the email.xq example there is an error message “[XQST0059] Module 'http://basex.org/modules/email/EMail' not found.”

 

Does the email module work with current versions of BaseX?

 

Also, is it possible to send HTML formatted email with images using the email module?

 

Thank you,

Vincent

 

 

 

 

From: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] On Behalf Of Christian Grün
Sent: Wednesday, September 23, 2015 3:24 AM
To: Tim Thompson <timathom@gmail.com>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] BaseX, Zorba, e-mail module

 

Hi Tim,

We have implemented an XQuery/Java e-mail module quite some time ago,
which we are using in various commercial projects. The main reason why
we didn't make it public yet is that we didn't have time to document
it properly. I have just uploaded this module, and you can install it
via:

repo install http://files.basex.org/modules/org/basex/modules/email/EMail.jar

The jar file contains two simple example for sending mails (in the
xquery sub-directory).

Looking forward to your feedback.
Christian
___________________________________

On Wed, Sep 23, 2015 at 7:04 AM, Tim Thompson <timathom@gmail.com> wrote:
> 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
>