无法从 Liferay Web 表单发送电子邮件
我使用 Liferay Web Forms 来发送电子邮件。
到目前为止已完成:
- 设置表单标题和描述。
- 更改了输入字段名称。
- 勾选“发送电子邮件”功能,设置邮件标题和地址。
- 更改了门户设置,以便虚拟主机名、电子邮件服务器名称和发件人电子邮件地址来自我自己的域,
如果我在 portal-ext.properties
上添加 smtp 配置,我可以让它在我的本地开发计算机上运行和conf/Catalina/localhost/ROOT.xml
我的问题是把它放到另一台服务器机器上,安装了不同的tomcat服务器并且没有以前的conf/Catalina/localhost/ROOT.xml< /代码> 文件夹 现存的。我从互联网上获取了一个捆绑包,但不知道如何将文件夹设置到我的开发机器上,即我不知道如何在以前没有该文件的机器上配置它。
在tomcat找到添加的ROOT.xml之前我是否必须进行一些更改?我已经重新启动服务器但没有效果。
I am using Liferay Web Forms for email sending purposes.
Done so far:
- Setup the form title and description.
- Altered the input field names.
- Ticked the "Send Email" functionality, set up mail title and address.
- Changed portal settings so that virtual host name, email server name and sender email address from my own domain
I can get this to work on my local development machine if I add the smtp configurations on portal-ext.properties
and conf/Catalina/localhost/ROOT.xml
My problem is on putting this to another server machine, with a different tomcat server installed and no previous conf/Catalina/localhost/ROOT.xml
folder existing. I took a bundle from internet and don't know how the folder is set up to my dev machine i.e. I don't know how this should be configured on a machine which does not previously have that file.
Do I have to make some changes before the tomcat finds the added ROOT.xml? I already restarted server with no effect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我相信 Web 表单 portlet 将使用控制面板中首选项设置的邮件配置。
转到控制面板>服务器管理>邮件配置邮件设置。
I believe the Web Form portlet will use mail configurations set by a preference in Control Panel.
Goto Control Panel > Server Administration > Mail to configure the Mail settings.
RP 在他的回答中关于配置位置的说法是正确的。您也可以将其放在 Portal-ext.properties 中,只要文件名称中有破折号而不是下划线(这要么是您的问题中的拼写错误,要么是您的设置中的拼写错误 - 在后一种情况下,它会是设置未被选取的原因)
RP is correct with regards to configuration location in his answer. You can also have it in portal-ext.properties, as long as the file has a dash and not an underscore in the name (this is either a typo in your question here or in your setup - in the later case it'd be the reason for the settings not being picked up)