BaseX EMail-Module
Wednesday, 13 July 2016 · 5 messages
UG
Ulrike Schaper - SideStep Business Solutions GmbH13 Jul 2016 08:43 #
Hi everybody,
I know this issue has been discussed already, but I still have problems concerning BaseX and sending E-Mails: I downloaded Email.jar which has been described in earlier posts, and put it into the basex/lib folder.
I found examples in the jars xquery subdirectory and tried to execute them. I get the following error: EMail:send(element()): org.basex.query.func.FuncOptions.parse(Lorg/basex/query/value/item/Item;Lorg/basex/util/options/Options;)Lorg/basex/util/options/Options;.
Can you help?
Best regards,
Ulrike.
CG
Christian Grün13 Jul 2016 09:42 #
Hi Ulrike,
Quoted text · Ulrike Schaper - SideStep Business Solutions GmbH · 3 lines
> I know this issue has been discussed already, but I still have problems > concerning BaseX and sending E-Mails: I downloaded Email.jar which has been > described in earlier posts, and put it into the basex/lib folder.
I have aligned the module with the latest version of BaseX. Could you please give it another try? The URL is the same as before [1].
Hope this helps,
Christian
[1] http://files.basex.org/modules/org/basex/modules/email/EMail.jar
Quoted text · Ulrike Schaper - SideStep Business Solutions GmbH · 13 lines
> I found examples in the jars xquery subdirectory and tried to execute them. > I get the following error: > > EMail:send(element()): > org.basex.query.func.FuncOptions.parse(Lorg/basex/query/value/item/Item;Lorg/basex/util/options/Options;)Lorg/basex/util/options/Options;. > > > > Can you help? > > Best regards, > > Ulrike.
UG
Ulrike Schaper - SideStep Business Solutions GmbH13 Jul 2016 09:52 #
Thank you, Christian - at least it's a different error message now: [bxerr:BASX0000] EMail: Sending the email to the following server failed
This is probably a problem with my email provider, I'll have a look at it. By the way: Do you have an email option for tls/starttls?
Best regards,
Ulrike.
Quoted text · Christian Grün · 27 lines
-----Ursprüngliche Nachricht----- Von: Christian Grün [mailto:christian.gruen at gmail.com] Gesendet: Mittwoch, 13. Juli 2016 09:42 An: Ulrike Schaper <U.Schaper at sidestep-solutions.de> Cc: basex-talk at mailman.uni-konstanz.de Betreff: Re: [basex-talk] BaseX EMail-Module Hi Ulrike, > I know this issue has been discussed already, but I still have > problems concerning BaseX and sending E-Mails: I downloaded Email.jar > which has been described in earlier posts, and put it into the basex/lib folder. I have aligned the module with the latest version of BaseX. Could you please give it another try? The URL is the same as before [1]. Hope this helps, Christian [1] http://files.basex.org/modules/org/basex/modules/email/EMail.jar > I found examples in the jars xquery subdirectory and tried to execute them. > I get the following error: > > EMail:send(element()): > org.basex.query.func.FuncOptions.parse(Lorg/basex/query/value/item/Item;Lorg/basex/util/options/Options;)Lorg/basex/util/options/Options;. > > > > Can you help? > > Best regards, > > Ulrike.
CG
Christian Grün13 Jul 2016 10:00 #
Quoted text · Ulrike Schaper - SideStep Business Solutions GmbH · 1 line
> By the way: Do you have an email option for tls/starttls?
I think there are the two boolean options 'tls' and 'ssl'. But I must confess I didn’t run the code for quite some time now. I’m attaching the two relevant source files. If by chance you decide to update them, you are invited to send them back to us ;)
Quoted text · Ulrike Schaper - SideStep Business Solutions GmbH · 34 lines
> -----Ursprüngliche Nachricht----- > Von: Christian Grün [mailto:christian.gruen at gmail.com] > Gesendet: Mittwoch, 13. Juli 2016 09:42 > An: Ulrike Schaper <U.Schaper at sidestep-solutions.de> > Cc: basex-talk at mailman.uni-konstanz.de > Betreff: Re: [basex-talk] BaseX EMail-Module > > Hi Ulrike, > >> I know this issue has been discussed already, but I still have >> problems concerning BaseX and sending E-Mails: I downloaded Email.jar >> which has been described in earlier posts, and put it into the basex/lib folder. > > I have aligned the module with the latest version of BaseX. Could you please give it another try? The URL is the same as before [1]. > > Hope this helps, > Christian > > [1] http://files.basex.org/modules/org/basex/modules/email/EMail.jar > > >> I found examples in the jars xquery subdirectory and tried to execute them. >> I get the following error: >> >> EMail:send(element()): >> org.basex.query.func.FuncOptions.parse(Lorg/basex/query/value/item/Item;Lorg/basex/util/options/Options;)Lorg/basex/util/options/Options;. >> >> >> >> Can you help? >> >> Best regards, >> >> Ulrike.
JE
Jens Erat13 Jul 2016 10:14 #
Reading the docs:
https://commons.apache.org/proper/commons-email/apidocs/org/apache/commons/mail/Email.html#setTLS%28boolean%29
ssl sets usage of TLS as wrapper, usually on port 465, which is deprecated for SMTP. Better use tls which uses the STARTTLS SMTP command.
Anyway, the mail module seems to use deprecated methods in the underlying Java module.Quoted text · Christian Grün · 44 lines
Am 13.07.2016 um 10:00 schrieb Christian Grün: >> By the way: Do you have an email option for tls/starttls? > > I think there are the two boolean options 'tls' and 'ssl'. But I must > confess I didn’t run the code for quite some time now. I’m attaching > the two relevant source files. If by chance you decide to update them, > you are invited to send them back to us ;) > > > >> -----Ursprüngliche Nachricht----- >> Von: Christian Grün [mailto:christian.gruen at gmail.com] >> Gesendet: Mittwoch, 13. Juli 2016 09:42 >> An: Ulrike Schaper <U.Schaper at sidestep-solutions.de> >> Cc: basex-talk at mailman.uni-konstanz.de >> Betreff: Re: [basex-talk] BaseX EMail-Module >> >> Hi Ulrike, >> >>> I know this issue has been discussed already, but I still have >>> problems concerning BaseX and sending E-Mails: I downloaded Email.jar >>> which has been described in earlier posts, and put it into the basex/lib folder. >> >> I have aligned the module with the latest version of BaseX. Could you please give it another try? The URL is the same as before [1]. >> >> Hope this helps, >> Christian >> >> [1] http://files.basex.org/modules/org/basex/modules/email/EMail.jar >> >> >>> I found examples in the jars xquery subdirectory and tried to execute them. >>> I get the following error: >>> >>> EMail:send(element()): >>> org.basex.query.func.FuncOptions.parse(Lorg/basex/query/value/item/Item;Lorg/basex/util/options/Options;)Lorg/basex/util/options/Options;. >>> >>> >>> >>> Can you help? >>> >>> Best regards, >>> >>> Ulrike.
--
Jens Erat
Universität Konstanz
Kommunikations-, Infomations-, Medienzentrum (KIM)
Abteilung Basisdienste
D-78457 Konstanz
Mail: jens.erat at uni-konstanz.de
Written for BaseX 8.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery