问题描述
我浏览了产品库,发现有一个名为xdmp:email($node)
的方法只能使用名为smtp
relay(?)的东西发送电子邮件,而NOT
不需要任何身份验证.例如,如何使用我的电子邮件发送电子邮件,并进行以下配置:
I went through product library and found that there is a method called xdmp:email($node)
which can send email only using a thing called smtp
relay(?) which does NOT
require any authentication. How can I send email using my email for example with following configuration:
outgoing smtp server: smtp.gmail.com
smtp port: 465
username: [email protected]
password: ****
Use secure connection: true.
当我们自动执行"send email
"过程时,这组参数很常见.现在,在marklogic中,我们有一个名为xdmp:email
的方法,该方法不提供任何位置来指定这些参数.那么我们如何在marklogic中发送电子邮件?
This set of parameters are common when we automate the 'send email
' process. Now, in marklogic, we have a method named xdmp:email
which doesnot provide any place to specify these parameters. So how can we send email in marklogic ?
推荐答案
设置一个本地smtp中继,该中继仅侦听本地连接并且不需要登录,而是充当更智能主机的身份验证中继.在您的示例中,更聪明的主机可能是google.
Set up a local smtp relay that only listens to local connections and does not require a login, but acts as an authentication relay for a smarter host. In your example the smarter host might be google.
例如,如果您想使用后缀作为身份验证中继,则可以按照中的说明进行操作http://www.postfix.org/SOHO_README.html 在在Postfix SMTP/LMTP客户端中启用SASL身份验证"下.
For example if you want to use postfix as your authentication relay, you might be able to follow the instructions at http://www.postfix.org/SOHO_README.html under "Enabling SASL authentication in the Postfix SMTP/LMTP client".
这篇关于使用marklogic和xdmp发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!