Osclass Support Forums

General osclass questions => General discussion => Topic started by: jj2k on August 15, 2020, 03:21:01 PM

Title: Help - Mail Server is not sending emails
Post by: jj2k on August 15, 2020, 03:21:01 PM
Hello Friends,

Pls. help me .......
I am receiving emails only for user gets registered and Ad is published.
Other things are mostly not working ...this include:
Password reset...
No email is coming on Gmail or Yahoo or even MSN.

In addition to this, any way to INSTALL FRESH OSCLASS SCRIPT without distrubing database and theme settings?

appreciate help out


Thank you
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on September 14, 2020, 03:17:00 PM
Check docs:
https://docs.osclasspoint.com/setting-up-a-mail-server

Or discuss with your hosting provider.
Title: Re: Help - Mail Server is not sending emails
Post by: son on October 13, 2020, 08:17:56 AM
Hi,
I configured gmail server like the demo video but it doesn't send any kind of emails. If a user is registered it doesn't send mail. If somebody sends a message of an ad neither.

Can you help me?

thanks
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 13, 2020, 10:01:33 AM
@son
You can test in email templates if your mail server is functional or not.
Usually problem is with smtp authentication (try to enable/disable), tls and port.
Title: Re: Help - Mail Server is not sending emails
Post by: pixelpadre2 on October 14, 2020, 03:51:24 PM
Hello Friends,

Pls. help me .......
I am receiving emails only for user gets registered and Ad is published.
Other things are mostly not working ...this include:
Password reset...
No email is coming on Gmail or Yahoo or even MSN.

In addition to this, any way to INSTALL FRESH OSCLASS SCRIPT without distrubing database and theme settings?

appreciate help out


Thank you

Gmail sends all of my emails into spam folder.  Check gmail SPAM folder.
Title: Re: Help - Mail Server is not sending emails
Post by: son on October 14, 2020, 10:32:38 PM
I solved enabling POP over SMTP.

But now when an user is registered osclass doesn't send the validation mail, but in admin mail I get the new registration, or if a non registered user posts a new listing it receives the mail to edit.

How can I solve it?

I'm working on a fresh installation.

Thanks
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 14, 2020, 11:10:59 PM
Osclass sends all emails or none, that is weird.
Have you checked error log? Spam folder?
Title: Re: Help - Mail Server is not sending emails
Post by: son on October 15, 2020, 08:10:50 AM
Hi,

there aren't in the spam folder.

Where can I see the error log?

Thanks.

Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 15, 2020, 12:27:06 PM
@son
Discuss with your hosting provider.
Title: Re: Help - Mail Server is not sending emails
Post by: son on October 15, 2020, 03:20:17 PM
They says that the problem is with osclass. Because the mail config works or not works, but it doesn't works randomly.
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 15, 2020, 04:27:58 PM
Then it cannot be problem of osclass.
Test different mail server, ie gmail
Title: Re: Help - Mail Server is not sending emails
Post by: jcarrolo01 on October 16, 2020, 08:58:24 AM
Good day...

After reading this i try on my site with osclass 4.1.0..

I try to send emails from admin dashboard, email models, and yes, i got an error sending emails..

For me, and for now is not a big issue becase is a site in preparation to be launched, but the issue is there..

Best regards
Joao carrolo
Title: Re: Help - Mail Server is not sending emails
Post by: jcarrolo01 on October 18, 2020, 01:49:04 PM
Hello..

I made several trys, and the conclusion is.

With smtp authentication: dosn't work
Without smtp authentication: work perfectlly

Best regards
Joao carrolo

Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 19, 2020, 07:24:07 PM
@jcarrolo01
Something like that worked for me as well.

If you look on docs updated few months ago:
https://docs.osclasspoint.com/setting-up-a-mail-server

I have noticed:
"Note: In some hostings option “SMTP Authentication” may not work (depends if hosting supports that), make sure to try with & without this setting."
Title: Re: Help - Mail Server is not sending emails
Post by: jcarrolo01 on October 19, 2020, 08:56:21 PM
Hello...

Maybe on this point i disagree with you...

Same site send emails with smtp authentication in osclass 3.9.0, after upgrade to 4.1.1 don't send anymore with smtp activated.. The only changed variable here is the upgrade, nothing else...

But is working  :) :)

Best Regards
João Carrolo
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 19, 2020, 08:58:40 PM
@jcarrolo01
Osclass 4.1.1 use may use different version of PHP mailer (latest of version 5.x.x), would like to update to 6.x.x in osclass 4.2, but they have changed file structure in this library and based on experience in 3.9 update, it may affect plugins those include files from library direclty.
Title: Re: Help - Mail Server is not sending emails
Post by: pixelpadre2 on October 22, 2020, 01:31:15 PM
I am having major problem also.  The problem did not exist with 3.8.

Now all of my emails are phpmail only.  Other send email options do not work.

Problem is gmail does not like the header from phpmail and puts all of my emails into customers spam folder.  Big problem  All email validation goes to spam.

Below is the header problem.

Quote
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: by server.rosinto.com (Postfix, from userid 1000)
   id 3E87D3E842; Wed, 21 Oct 2020 14:53:06 +0000 (UTC)
To: SMA San Miguel Allende Classified Ads FREE <[email protected]>
Subject: [SMA San Miguel Allende Classified Ads FREE] Contact -
X-PHP-Originating-Script: 1000:class.phpmailer.php
Date: Wed, 21 Oct 2020 09:53:06 -0500
From: Steve Imhof <[email protected]>
Reply-To: [email protected]
Message-ID: <[email protected]>
X-Mailer: PHPMailer 5.2.27 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 22, 2020, 02:55:25 PM
What is problem in header?
Header is constructed by PHP mailer itself
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 22, 2020, 03:10:29 PM
Important notice is here (I did not get such issue when using gmail, maybe smtp auth is needed or so?)
https://stackoverflow.com/questions/9988325/everytime-my-mail-goes-to-spam-in-phpmailer

Quote
Based on you code i notice that you are sending an email directly from you web page on your domain.

For example you used an @hotmail.com address.

When the recipient receive the emails the mail service of the recipient may test a reverse DNS of the sender of the mail. So the sender is from @hotmail.com but the mail comes from your domain which of course is not hotmail.com.

So I receive a mail from an address @hotmail.com but the IP sender isn't related at all with domain hotmail.com: that's SPAM!
Title: Re: Help - Mail Server is not sending emails
Post by: Andrey on October 26, 2020, 08:29:18 PM
I have the same problem. I have two sites on the same hosting provider.
One site sends all the mail "register, publish, update, etc.", and the second site sends only "register, publish" and that's it.
Both sites are osclass 3.9, Osclass configured the same. Which does not send all mail has been updated to 4.1.1. Nothing changed.
I checked everything, I still don't understand why
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 26, 2020, 08:40:30 PM
It would be good to find what is in logs, if it is not sent at all or it is filtered by inbox mail...
Title: Re: Help - Mail Server is not sending emails
Post by: Andrey on October 26, 2020, 08:53:41 PM
Generally not sent from the very construction of the site. One domain name was changed to another. Later I made a second site, transferred a backup of the first one to it. Database and directory. And all mail works on it. On the first site, the mail has not been working completely until now
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on October 27, 2020, 08:16:07 AM
@andrey
So does it work now? if so, it would be good to write guide for other people having same issue :)
Title: Re: Help - Mail Server is not sending emails
Post by: Andrey on November 04, 2020, 09:07:14 PM
Now I accidentally noticed that when registering, the user is not sent a confirmation email.
I tried to register from different mail domains (gmail.com, yandex.ru), none of them received a confirmation letter. Then I checked out new users, there were many who could not confirm. Approximately 50/50 the user doesn't work.
Activated user manually and admin panel. Placed an ad from this user, the letter also did not come to the user that "the ad was successfully published"
In this case, letters about publication and registration come to the administrator
Before the update, the occlass did not encounter this problem. What to do? Thanks.
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on November 04, 2020, 09:15:58 PM
Enable debug log and get details what happened
Title: Re: Help - Mail Server is not sending emails
Post by: Andrey on November 04, 2020, 09:32:07 PM
Nothing, empty in debug.log
Neither log nor PHP errors
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on November 04, 2020, 09:50:21 PM
I will test "the ad was successfully published" mail tomorrow, I have mostly no plugins on test site.
Title: Re: Help - Mail Server is not sending emails
Post by: Andrey on November 04, 2020, 11:44:21 PM
Some nonsense. The smtp checkbox was removed and sending mail began to work as expected. On version 3.9 it did not work like that, so I did not even try to turn off the smtp
(https://do-mos.ru/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA.PNG)
Although my second site with version 4.1 and configured mail as it was on 3.9 works further without problems. Email on one smtp domain as the first. Miracles :)
Title: Re: Help - Mail Server is not sending emails
Post by: Andrey on November 05, 2020, 07:17:50 AM
Almost 800 letters arrived that were not sent to the admin for the whole time. Somewhere in the class were stored as a draft, but there were no php errors

(https://do-mos.ru/%D1%87%D0%B5%D1%80%D0%BD%D0%BE%D0%B2%D0%B8%D0%BA.PNG)
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on November 05, 2020, 08:24:41 AM
@Andrey
I've done small research and everything works as expected.
- "Edit options for the listing {ITEM_TITLE}" email comes if user is not logged in
- "A new listing has been published" comes only to admin, if this is enabled in listing settings
- "Validate your listing" comes is listing validation is enabled
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on November 05, 2020, 08:27:37 AM
Some nonsense. The smtp checkbox was removed and sending mail began to work as expected. On version 3.9 it did not work like that, so I did not even try to turn off the smtp
Although my second site with version 4.1 and configured mail as it was on 3.9 works further without problems. Email on one smtp domain as the first. Miracles :)

SMTP authentication does not work also on my hosting. I think this is hosting related and must be enabled on hosting, otherwise mails are failing and this option should be disabled.
Title: Re: Help - Mail Server is not sending emails
Post by: Sanjay Srivastava on March 23, 2022, 02:34:45 PM
Hello There,


I am also getting same issue. Today i have checked after 15 December 2021 I am not getting any email also user not getting any activation email. All errors which i noticed -
1. When a user registered on my website they have not received an activation email. While i tried myself (by registering new user) also i try to send "resend activation mail" but its not working.
2. Also i am not getting email when new listing is published. While before 15 December its working.
3. Also when someone trying to contact the publisher then publisher and admin not getting that message or email. While if posting comments then comment received by admin for approval.
4. When user clicking on forgot password then he is also not receiving any email for reset password.
5. While if someone sending message through contact us option then i am getting email.

And when i check in admin pannel setting - Email Template and then test email. This option working. I am getting email from here.

If anyone know how to solve this issue please tell me .

Thanks in advance.
Title: Re: Help - Mail Server is not sending emails
Post by: Sanjay Srivastava on March 24, 2022, 10:10:13 AM
I have fix this issue by Myself  :) :)
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on March 24, 2022, 11:56:08 AM
For the others that will come after you, you could describe how you fixed issue  ;)
Title: Re: Help - Mail Server is not sending emails
Post by: Sanjay Srivastava on August 09, 2022, 12:06:09 PM
sorry for late reply.. I have not checked  -

I have just configured mail server in Admin Panel - Settings - Mail Server - and write all mandatory field. - And then its working . 
Title: Re: Help - Mail Server is not sending emails
Post by: MB Themes on August 09, 2022, 01:17:59 PM
Oki so just standard config :)