Fórum
Email "Your New Password" not sent
Alberto Martínez, modificado 7 Anos atrás.
Email "Your New Password" not sent
New Member Postagens: 23 Data de Entrada: 04/12/15 Postagens Recentes
Hello everyone!
I´m using Liferay 6.2 GA4 on tomcat 7.0
I´m trying to send email to the user when he/she change his/her password and does not work.
I follow the next steps:
1. I click "I forget password"
2. I type email into input text to send to my inbox link to reset password
3. I go to my inbox, click on link to reset password
4. I type the new password into input text and confirm the new password into another input text and click on "change password" button
After of this, the portal must send a email to my inbox with confirmation, but it never come
Is it necesary to change or add anything in portal-ext.properties or in any configuration?
Thank you!!
I´m using Liferay 6.2 GA4 on tomcat 7.0
I´m trying to send email to the user when he/she change his/her password and does not work.
I follow the next steps:
1. I click "I forget password"
2. I type email into input text to send to my inbox link to reset password
3. I go to my inbox, click on link to reset password
4. I type the new password into input text and confirm the new password into another input text and click on "change password" button
After of this, the portal must send a email to my inbox with confirmation, but it never come
Is it necesary to change or add anything in portal-ext.properties or in any configuration?
Thank you!!
Fernando Fernandez, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
Expert Postagens: 396 Data de Entrada: 22/08/07 Postagens Recentes
Hi Alberto,
Log in as an Administrator, go to Control Panel / Server Adminstration / Mail and check your Outgoing SMTP Server settings.
HTH
Fernando
Log in as an Administrator, go to Control Panel / Server Adminstration / Mail and check your Outgoing SMTP Server settings.
HTH
Fernando
Alberto Martínez, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
New Member Postagens: 23 Data de Entrada: 04/12/15 Postagens Recentes
Thanks Fernando.
The configuration is fine I think.
In fact, I receive other emails from my portal.
The only one notification I don´t receive is password change confirmation.
The configuration is fine I think.
In fact, I receive other emails from my portal.
The only one notification I don´t receive is password change confirmation.
Shiva goud, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
Regular Member Postagens: 110 Data de Entrada: 02/01/15 Postagens Recentes
Please check the checkbox in Control-Panel"---> Settings --> Authentication-->"Allow users to request forgotten passwords?
Alberto Martínez, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
New Member Postagens: 23 Data de Entrada: 04/12/15 Postagens Recentes
Thanks Shiva
That checkbox is active.
In fact, all checkboxes are active in this page.
Any idea more, please? I don´t know what can I do
That checkbox is active.
In fact, all checkboxes are active in this page.
Any idea more, please? I don´t know what can I do
Denis Cucchietti, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
New Member Postagens: 19 Data de Entrada: 15/09/14 Postagens Recentes
Hi,
I have exactly the same problem ! All email notifications works expect when i change the password.
Did you find a solution?
Thanks
I have exactly the same problem ! All email notifications works expect when i change the password.
Did you find a solution?
Thanks
Alberto Martínez, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
New Member Postagens: 23 Data de Entrada: 04/12/15 Postagens Recentes
I´m sorry but not
Denis Cucchietti, modificado 7 Anos atrás.
RE: Email "Your New Password" not sent
New Member Postagens: 19 Data de Entrada: 15/09/14 Postagens Recentes
Thanks !
The problem is always present in Liferay 6.2 GA 6 , to make it works i overrided the UserLocalService like that :
The problem is always present in Liferay 6.2 GA 6 , to make it works i overrided the UserLocalService like that :
public class UserLocalServiceWrapperImpl extends UserLocalServiceWrapper {
public UserLocalServiceWrapperImpl(UserLocalService userLocalService) { super(userLocalService); }
@Override
public User updatePassword( long userId, String password1, String password2,boolean passwordReset) throws PortalException, SystemException {
return updatePassword( userId, password1, password2, passwordReset, false);
}
@Override
public User updatePassword(long userId, String password1, String password2,boolean passwordReset, boolean silentUpdate) throws PortalException, SystemException {
User user = super.updatePassword(userId, password1, password2, passwordReset, silentUpdate);
if (user != null) {
ServiceContext sc = new ServiceContext();
long companyId = user.getCompanyId();
String adminEmailFromName = PrefsPropsUtil.getString(companyId, PropsKeys.ADMIN_EMAIL_FROM_NAME);
String adminEmailFromAddress = PrefsPropsUtil.getString(companyId, PropsKeys.ADMIN_EMAIL_FROM_ADDRESS);
String adminEmailPasswordSentSubject = PrefsPropsUtil.getContent(companyId, PropsKeys .ADMIN_EMAIL_PASSWORD_SENT_SUBJECT);
String adminEmailPasswordSentBody = PrefsPropsUtil.getContent(companyId, PropsKeys .ADMIN_EMAIL_PASSWORD_SENT_BODY);
UserLocalServiceUtil.sendPassword(user.getCompanyId(), user.getEmailAddress(), adminEmailFromName,adminEmailFromAddress, adminEmailPasswordSentSubject, adminEmailPasswordSentBody, sc);
}
return user;
}
}