掲示板

Submit a form from email in Liferay

8年前 に Kumari Anusha Kommuri によって更新されました。

Submit a form from email in Liferay

New Member 投稿: 11 参加年月日: 16/01/20 最新の投稿
Hi.. I am using Liferay 6.2. I am not using any ext plugin. I am using normal portlet. I am able to send email through liferay. In that email, there is a form ( i.e, it is a template which i wrote in .vm file ) ( The form has textboxes, dropdowns, submit button, etc ). When user receives this form in email.. he fills the form and clicks submit. Then data should be inserted into database. So how can I get the data submiited from email to insert into db? Thanks in advance ...
thumbnail
8年前 に Manish Yadav によって更新されました。

RE: Submit a form from email in Liferay

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
You can create form in inside VM template as normal HTML form and


<:form action="${actionURL}" method="post" name="fm" enctype="multipart/form-data" >
 Yours Form Tags


In Action/Render method you can create Action URL

PortletURL actionURL=renderResponse.createActionURL(); 

and inside your mail function  you can set actionURL value for velocity template.
					VelocityContext context = new VelocityContext();
context.put("actionURL", actionURL);
8年前 に Kumari Anusha Kommuri によって更新されました。

RE: Submit a form from email in Liferay

New Member 投稿: 11 参加年月日: 16/01/20 最新の投稿
Can u pls elaborate more? On submitting form which is in vm file.. data should go into database. Is that possible? If so.. How?
thumbnail
8年前 に Manish Yadav によって更新されました。

RE: Submit a form from email in Liferay

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
Sorry ..I think this code will not work.. and might be its not possible to create email