The ofibz logon function allows you to find a password by email. However, you must configure an email account and an SMTP server to retrieve the password. The specific configuration is as follows:
1: Find the from_address field in the table product_store_email_setting of the OFBiz database, and change all the values in this field to the default sending account configured.
2: Configure SMTP parameters in general. Properties
# -- The default domainname used in the notification emails links
# As 'baseurl' and 'basesecureurl' are set in the URL. properties file.
# -- Mail communications enabled (Y | N)
Mail. Communications. Enabled = y
# -- Redirect all mail configurations tothis address for testing
# Mail. configurications. redirectto =
# -- The default mail server to use
Mail. SMTP. Relay. Host = smtp.126.com
# -- Smtp auth settings
Mail. SMTP. Auth. User = yanhuan0806 ---------------------- (email name)
Mail. SMTP. Auth. Password = yunhan0806 ------ (email password)
# -- Additional required fields needed forgmail and other non traditional SMTP servers
# -- These added fields also work for Yahoo business mail for instance
# -- Gmail SMTP port can be either 465 or 587
Mail. SMTP. Port = 25
# -- Gmail requires starttls
Mail. SMTP. starttls. Enable = true
# -- Gmail requires a JSSE socket factory, the following socketfactory settings will override javamail's defaultetfactory settings
# -- Port needs to be the same as mail. SMTP. Port
Mail. SMTP. socketfactory. Port = 25
# Mail. SMTP. socketfactory. Class = javax.net. SSL. sslsocketfactory
# -- Fallback [true | false] determines whether you will allow a non secureconnection if you are unable to get a secure one
# Mail. SMTP. socketfactory. Fallback = false
3: After the configuration is complete, you need to restart OFBiz to make the configuration take effect. You can receive an email after logging on again to retrieve the password.
Note:
To send emails in the ecommerce module, modify the following content:
File Path: Applications/securityext/data/userdemodata. xml
<Emailtemplatesetting emailtemplatesettingid ="Email_password"Subject ="New Password Sent ($ {userloginid })"Fromaddress ="[Email protected]"
Description ="Used to send anew password at user request"/>
Changed:
<Emailtemplatesetting emailtemplatesettingid ="Email_password"Subject ="New Password Sent ($ {userloginid })"Fromaddress ="[Email protected]"
Description ="Used to send anew password at user request"/>
OFBiz localization and email setting 126 mailbox