From: Harris, B. T. (GSFC-5870) <ber...@na...> - 2023-09-13 11:28:08
|
I recently tested it on exist 6.2 and RH 7 and it worked (recipients received the email). I used mail:send-email($msg, (), ()) I do not know if that difference is significant or about other configurations. Bernie From: Winona Salesky <wsa...@gm...> Date: Wednesday, September 13, 2023 at 7:17 AM To: exist-open <exi...@li...> Subject: [EXTERNAL] [BULK] [Exist-open] send-email function CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC. Has the send-email() function changed or been depreciated? It no longer works on my 6.1.0 version of eXist. I am trying to use the local send mail server for the SMTP server. When I use it on a locally installed version, I get true() but no email is sent, when I try using it on my production version of my app (installed via docker on AWS) I get a 'connection refused' error. Sample xquery: xquery version "3.1"; let $email := <mail> <from>wsa...@gm...<mailto:wsa...@gm...></from> <to>wsa...@gm...<mailto:wsa...@gm...></to> <subject>Test email client in eXist-db 2</subject> <message> <xhtml> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test email client in eXist-db</title> </head> <body> <p>Name: winona</p> <p>e-mail: winona</p> <p>Subject: test</p> </body> </html> </xhtml> </message> </mail> return mail:send-email($email, '', '') Thanks for any insights. -Winona |