In Discuz, how do I configure to use GMAIL mail to send emails?

Source: Internet
Author: User
I have been in contact with DISCUZ for almost half a year and found a lot of useful information on the forum. today I also sent a hope to help my friends who need it. I recently applied for a GOOGLEAPPS enterprise mailbox, but in DISCUZ debugging has never been successful. I have found many posts on the forum and have not found any practical and meaningful perfect posts.

About half a year of contact with DISCUZ

I found a lot of useful materials from the forum.

I also sent one today

Hope to help friends in need

I recently applied for a GOOGLE APPS enterprise mailbox

However, DISCUZ debugging fails.

I have found many posts on the forum.

There are no practical and meaningful perfect posts.

But with my constant exploration

Today I finally succeeded.

Currently, only QQ emails have not been sent.

1. after successfully applying for a google apps mailbox, you must set the domain name MX record first.

For details, refer to the official instructions on GOOGLE.
For each MX record, enter the corresponding information according to the entries in the following table.

You may not be allowed to enter a priority value based on the display in the following table. in this case, make sure that the server address is ranked in the order shown in the table. (That is, as long as the addresses are arranged in the correct order, the priority ranks [1, 3, 3, 5, 5, 5] and [1, 5, 5, 10, 10, 10, 10 .)

If the system requires that you specify the type of each record being added, enter "MX ".

MX ?? DNS is usually required ?? ? Domain name? End ?? (Trailing dot, "."), for example, "server.example.com .」.

Set all TTL values to the maximum allowed values.

MX server address priority
ASPMX. L. GOOGLE. COM. 10
ALT1.ASPMX. L. GOOGLE. COM. 20
ALT2.ASPMX. L. GOOGLE. COM. 20
ASPMX2.GOOGLEMAIL. COM. 30
ASPMX3.GOOGLEMAIL. COM. 30
ASPMX4.GOOGLEMAIL. COM. 30
ASPMX5.GOOGLEMAIL. COM. 30

2. after setting this, I will set OPENSSL for the server.

My website is 2003 + IIS + PHP

The operation method is

If I didn't install OPENSSL before, these two files are also included in the PHP windows release package and copied to the windows/system32 directory;
Go
Find and edit php. ini in windows
Find
; Extension = php_openssl.dll
Remove;

Then restart IIS

3. go to the DISCUZ background email settings to set

Select to connect to the SMTP server through SOCKET (ESMTP authentication is supported)

SMTP server: ssl: // smtp.gmail.com

SMTP Port: 465 or 587. do not use port 995 because only these two ports are mentioned in google apps mail settings. port 995 is intended for POP.

SMTP server requires authentication: Yes

Sender email address: your setting @ your domain name. com

SMTP Authentication username: your setting @ your domain name. com

SMTP authentication password: your password

Delimiter of the mail header:
Use CRLF as the separator (usually Windows host) ----- because I am a WINDOWS host, select a suitable one for you

The recipient address contains the user name: Yes

All error messages in blocked emails: Yes

4. I think this step is critical.

Almost no information can be found online

If there is a high person, please inform the purpose of this step

But I did.

In
Https://www.google.com/a ???. Com (here is your domain name)/UnlockCaptcha
You can use pop normally only after you unlock cpatch on the page.

Then run the Mail test on DISCUZ.

Currently, only emails sent to QQ mail cannot be received.

If you have any new discoveries, please follow the instructions below

If you think this post is helpful to you, please raise your hand to the top

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.