*

cris17

  • *
  • 4 posts
Email sent but not received
« on: April 16, 2022, 06:44:48 PM »
Hi everyone,
I've been on my site (Osclass 8.0.1 with Tatiana theme) for about a month and until a few days ago everything worked fine. A few days ago I noticed that Osclass, in some specific functions, no longer sends me emails or better, it sends the email but the email doesn't arrive at destination. This only happens on form contact_post (item page) in osclass\oc-content\themes\tatiana\item.php and on form send_friend_post (item page) in osclass\oc-content\themes\tatiana\item-send-friend.php but not on form contact_post (user page) in osclass\oc-content\themes\tatiana\user-public-profile.php  where the email is sent and manages to get to its destination. 

I don't know what may have caused this "error" and I don't know where to put my hands. I tried to follow the code (for contact_post item page) but when I get to the function osc_run_hook('post_item_contact_post', $item) I can't figure out where the definition of this hook is and so I don't know how to test how it works.

If anyone could help me in any way you willI would be grateful. Thank you very much in advance to all.

*

MB Themes

Re: Email sent but not received
« Reply #1 on: April 21, 2022, 01:36:25 PM »
@cris17
Does not make too much sense to me, I would recommend to switch to default theme and try if mails are being sent from here. If yes, copy forms from here to tatiana theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cris17

  • *
  • 4 posts
Re: Email sent but not received
« Reply #2 on: April 21, 2022, 06:49:14 PM »
I don't know why, but the code went back to working without changing anything two days after I published this post :-\. Do you know by chance what the problem would probably have been?

However, if I may ask, can you tell me where to find the definition of the osc_run_hook ('hook_email_item_inquiry', $aItem); ? Or a link to the documentation that talks about where to find the implementation of all the hooks because I have not seen anything online.

*

MB Themes

Re: Email sent but not received
« Reply #3 on: April 22, 2022, 11:48:30 AM »
@cris17
Sounds like mail server issue.
Code itself is documentation of code, I cannot imagine anyone doing such documentation that will use 1 person per 5 years.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cris17

  • *
  • 4 posts
Re: Email sent but not received
« Reply #4 on: April 22, 2022, 03:41:47 PM »
And can I do something to prevent it from happening again?

Anyway for the second question is fine... thanks for the reply. I'll try asking someone else on the forum if they know where the implementation is.

*

MB Themes

Re: Email sent but not received
« Reply #5 on: April 22, 2022, 06:57:47 PM »
Not sure, probably just using different mail server, but you would have to be sure its mail server problem
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Skywalker

  • **
  • 7 posts
Re: Email sent but not received
« Reply #6 on: April 22, 2022, 08:39:58 PM »
Hi everyone,
I've been on my site (Osclass 8.0.1 with Tatiana theme) for about a month and until a few days ago everything worked fine. A few days ago I noticed that Osclass, in some specific functions, no longer sends me emails or better, it sends the email but the email doesn't arrive at destination. This only happens on form contact_post (item page) in osclass\oc-content\themes\tatiana\item.php and on form send_friend_post (item page) in osclass\oc-content\themes\tatiana\item-send-friend.php but not on form contact_post (user page) in osclass\oc-content\themes\tatiana\user-public-profile.php  where the email is sent and manages to get to its destination. 

I don't know what may have caused this "error" and I don't know where to put my hands. I tried to follow the code (for contact_post item page) but when I get to the function osc_run_hook('post_item_contact_post', $item) I can't figure out where the definition of this hook is and so I don't know how to test how it works.

If anyone could help me in any way you willI would be grateful. Thank you very much in advance to all.

Generally it's the problem of the mail server. Now, if you use some email services like gmail, hotmail etc. then a simple solution is to create an email account in your cPanel, like [email protected] and then add a forwarder to it so that whatever email goes to that address will be forwarded to your external email in gmail or hotmail or whatever it is. Then put that '[email protected]' (or whatever mail ID you created) in the sites default email address field and no email will be missing. Why I am telling this, I have experienced an issue in one of my client's hotel booking website, which is, the emails sent from contact form is getting delivered to his gmail address but it is not getting delivered when a booking is made. It is a bug in the plugin I used for booking purpose. The company is working on it and they will issue a patch very soon but the bookings cannot wait. So I made this solution and everything is working fine since. But, if the mail server of your host fails then nothing will work, as it happened in your case.

*

cris17

  • *
  • 4 posts
Re: Email sent but not received
« Reply #7 on: April 27, 2022, 11:29:35 AM »
Anyway, in the forum I read that another guy has a different problem from mine but in her case there was a similar error with the hook. Or rather, it has many hooks, and some of them have stopped working to it. After a few days he came to the conclusion that there are some hooks that during their execution cause problems for the execution of other hooks. To solve the problem, in his case, he increased the priority of the hook that stops working. I don't know if this can solve my problem, but I will try it.