掲示板

send email form

8年前 に adil yamouni によって更新されました。

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
8年前 に David H Nebinger によって更新されました。

RE: send email form

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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.
8年前 に adil yamouni によって更新されました。

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
8年前 に Manish Yadav によって更新されました。

RE: send email form

Expert 投稿: 493 参加年月日: 12/05/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