留言板

send email form

adil yamouni,修改在8 年前。

send email form

New Member 帖子: 6 加入日期: 15-11-28 最近的帖子
hello
I want to make a "Contact us" form in my website from where users can send me emails , i use the "MailServiceUtil " to send my emails.
I configured the SMTP settings for gmail server in my "portal-ext.properties" , when i submit my form i get the message mention that the action went on successfully but i don't get any email in my inbox
can anyone help me with this issue ?
thumbnail
David H Nebinger,修改在8 年前。

RE: send email form

Liferay Legend 帖子: 14915 加入日期: 06-9-2 最近的帖子
It's reporting success putting the request into the queue for sending, that's all.

You'll have to check the logs to see why it didn't get out. And since you're dealing with google, you have to remember that gmail has a lot of spam filters, etc., that can block mail delivery.
adil yamouni,修改在8 年前。

RE: send email form

New Member 帖子: 6 加入日期: 15-11-28 最近的帖子
Hello David

Thanks for your response .
In my log i get the following warning
22:10:32,361 WARN [http-bio-8080-exec-15][SecurityPortletContainerWrapper:630] Reject process action for http://localhost:8080/web/guest/home on sendmail_WAR_sendmailportlet
thumbnail
Manish Yadav,修改在8 年前。

RE: send email form

Expert 帖子: 493 加入日期: 12-5-26 最近的帖子
Try with below properties might be it will work for you

1) Add below property in liferay-portlet.xml of portlet

<add-default-resource>true</add-default-resource>

2 ) Portlet-ext.properties

portlet.add.default.resource.check.whitelist=<PORTLET ID>
portlet.add.default.resource.check.enabled=false

HTH