K
K
Konstantin Khairov2015-11-22 23:46:54
PHP
Konstantin Khairov, 2015-11-22 23:46:54

How to replace mail() with PHPMailer on CMS, DataLife Engine?

Hello everyone, and so the question is this. My hosting has disabled the mail() function, I can’t change it now, but as the technical support told me, you can change the mail() function to the PHP Mailer library. They also gave instructions

In the smtp.class.php file, you need to change the word HELO to EHLO in 2 places
. And in the mail settings, in the admin panel, enter the following settings:
E-mail address of the administrator: [email protected]
SMTP host: tls://mail.ahost. uz
SMTP port: 465
SMTP username: [email protected]
SMTP password: your mailbox password

The instruction is rubbish, not one of the files that they asked to find in the CMS DLE files is present, I checked it on 4 different versions. If anyone did, please share how you can implement this type of sending mail from the CMS, I really need help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rikcon, 2015-11-22
@Rikcon

acid.name/?p=2126
Here is an instruction on how to change the SMTP server in DLE, just through the admin panel, you need to do the same only by substituting your settings.
OR you have an old version of DLE that doesn't work with PHPmailer yet

K
Konstantin Khairov, 2016-01-27
@Kaylos

So to all users with the same problem I give the answer. Register a Gmail account, there you will find the SMTP GOOGLE settings, do not take the settings from other sites, all the settings are there on Gmail. The most important thing is that Google has a device login control system. So he recognizes DLE as a dangerous device and blocks it, immediately disable this function in your Google account settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question