This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

KaloSex

  • ****
  • 139 posts
activation mails not being sent out
« on: February 10, 2023, 05:58:47 PM »
The feature was working normally when i firstly installed the scripted.. Lately i bought many plugins - not sure if related to any, but activation mails not being sent out. Even if i click on admin page to resend the mail, it doesnt get sent.

In the meantime, as admin, i get an email tha new user registered, and also i get mails from contact form

on phperror log i see this:
[10-Feb-2023 17:03:03 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "DB_HOST" in /home/hru33ujxrs7c/public_html/oc-includes/osclass/helpers/hDatabaseInfo.php:41
Stack trace:
#0 /home/hru33ujxrs7c/public_html/oc-includes/osclass/classes/database/DBConnectionClass.php(134): osc_db_host()
#1 /home/hru33ujxrs7c/public_html/oc-includes/osclass/classes/database/DAO.php(79): DBConnectionClass::newInstance()
#2 /home/hru33ujxrs7c/public_html/oc-includes/osclass/model/Preference.php(52): DAO->__construct()
#3 /home/hru33ujxrs7c/public_html/oc-includes/osclass/model/Preference.php(42): Preference->__construct()
#4 /home/hru33ujxrs7c/public_html/oc-includes/osclass/helpers/hPreference.php(1689): Preference::newInstance()
#5 /home/hru33ujxrs7c/public_html/oc-load.php(90): getBoolPreference('osclass_install...')
#6 /home/hru33ujxrs7c/public_html/index.php(25): require_once('/home/hru33ujxr...')
#7 {main}
  thrown in /home/hru33ujxrs7c/public_html/oc-includes/osclass/helpers/hDatabaseInfo.php on line 41

maybe somehow related?
« Last Edit: February 10, 2023, 06:38:11 PM by KaloSex »

*

MB Themes

Re: activation mails not being sent out
« Reply #1 on: February 10, 2023, 08:09:13 PM »
May be.
DB_HOST should be defined in config.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 139 posts
Re: activation mails not being sent out
« Reply #2 on: February 10, 2023, 08:18:23 PM »
of course it is (to localhost). How everything else would work on site correctly?

*

MB Themes

Re: activation mails not being sent out
« Reply #3 on: February 10, 2023, 08:22:58 PM »
Good question
How so it is undefined.
Anyway it may not matter at all.
Do you have delay when resending activation mail?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 139 posts
Re: activation mails not being sent out
« Reply #4 on: February 10, 2023, 10:12:07 PM »
when i click to resend the activation mail the page reload within 1-2 sec and i get the message: Activation email sent to one user

Marked as best answer by frosticek on February 13, 2023, 09:17:38 AM
*

KaloSex

  • ****
  • 139 posts
Re: activation mails not being sent out
« Reply #5 on: February 10, 2023, 11:17:19 PM »
Ok. The problem is that the activation mails are send with a different way than the rest mails from system. I checkeed logs and everything. Normally, all the email are getting sent from admin@kalo***.com

For some reason the activations mail getting send to [email protected]***.com

The "regter4325' is my username on my VPS and the server1 is the the hostname of the VPS. So, they are getting everywhere as SPAM.

How can i make the mails works as every other forms on site and getting sent from admin@kalose*.com??

*

KaloSex

  • ****
  • 139 posts
Re: activation mails not being sent out
« Reply #6 on: February 11, 2023, 12:39:59 AM »
solved by adding a Reverse DNS / Adding TPR to hostname and adding one more dns

*

MB Themes

Re: activation mails not being sent out
« Reply #7 on: February 11, 2023, 12:00:05 PM »
Thanks for sharing, so what was actually problem?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 139 posts
Re: activation mails not being sent out
« Reply #8 on: February 12, 2023, 06:58:39 PM »
Ok. The problem is that the activation mails are send with a different way than the rest mails from system. I checkeed logs and everything. Normally, all the email are getting sent from admin@kalo***.com

For some reason the activations mail getting send to [email protected]***.com

The "regter4325' is my username on my VPS and the server1 is the the hostname of the VPS. So, they are getting everywhere as SPAM.

How can i make the mails works as every other forms on site and getting sent from admin@kalose*.com??

that was the a actual problem. The contact form and the mail sending to admin having as sender the email you setup on osclass. The activation mails were using as center an email "created" from the vps hostname which was a subdomain (something like [email protected]) - so since the SPF dns was setup only for the main domain and not for the subdomains, all email clients were marking it as spam and not delivering it. So i had to create a PTR on the VPS and add also the subdomain on the SPF dns
« Last Edit: February 12, 2023, 07:01:00 PM by KaloSex »

*

MB Themes

Re: activation mails not being sent out
« Reply #9 on: February 13, 2023, 09:17:35 AM »
Thank you!
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots