Hi everybody,
last year I was looking for a way to send e-mails from eXist when you have to use an SMTP server with some kind of authentication, but I did not need it just then.
As last week I needed that capability, and it was not yet available, I added it on r11474. Now there is a new mail:send-email 2-parameter function, which relies on JavaMail. It takes as input a session handle from mail:get-mail-session and a sequence of XML elements representing the message, which follow the same structure used by the 3-parameter version of mail:send-email.
I also included an example atextensions/modules/src/org/exist/xquery/modules/mail/send-email_javamail.xql
Best Regards,
José María
--
"La violencia es el último recurso del incompetente"
- Salvor Hardin en "La Fundación" de Isaac Asimov
"Premature optimization is the root of all evil." - Donald Knuth
José María Fernández González
e-mail: jos...@gm...
|