Re: [EXTERNAL] [BULK] send-email function
Winona Salesky <[email protected]>
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <CAJthYRfgiYf2tetE5qMSmCay1rcZz-n05uZf-Croi0s6Pfjc-w@mail.gmail.com> |
Interesting, thanks. -Winona On Wed, Sep 13, 2023 at 7:27 AM Harris, Bernard T. (GSFC-5870) < [email protected]> wrote: > 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 <[email protected]> > *Date: *Wednesday, September 13, 2023 at 7:17 AM > *To: *exist-open <[email protected]> > *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>[email protected]</from> > <to>[email protected]</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 > > > _______________________________________________ Exist-open mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/exist-open