OFBiz localization and email setting 126 mailbox

Source: Internet
Author: User
Tags smtp auth starttls all mail email account

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.