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

umimo

  • ***
  • 88 posts
Stop sending emails
« on: March 17, 2023, 09:53:22 AM »
Hi all

How stop sending emails [email protected]

*

MB Themes

Re: Stop sending emails
« Reply #1 on: March 18, 2023, 08:45:04 PM »
Check user > ban rules
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #2 on: March 19, 2023, 10:16:34 AM »
Check user > ban rules

Not ban

only stop sending emails,

example > ad expired, new ad published like this

Find @domain email ids and block sending emails.



*

MB Themes

Re: Stop sending emails
« Reply #3 on: March 19, 2023, 12:14:55 PM »
Disable those notifications in listing/user settings
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #4 on: March 19, 2023, 01:53:48 PM »
Disable those notifications in listing/user settings

NOT ALL USERS

only plugin generated  emails  [email protected],[email protected]


not block gmail and hotmail.com

*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #5 on: March 20, 2023, 12:51:54 PM »
Any solution

Ad importer plugin create fake email ids  :(

plugin create [email protected] mail id  :( :( :(

*

MB Themes

Re: Stop sending emails
« Reply #6 on: March 31, 2023, 02:44:10 PM »
Yes plugin use fake ID until real one is not avaiable.
You could try this to block mails sent to "your domain".

Code: [Select]
function block_mydomain_mails($mail, $params) {
  $to = isset($parmas['to']) ? $parmas['to'] : '';
  $to_parts = explode('@', $to);
  $to_domain = isset($to_parts[1]) ? $to_parts[1] : '';
 
  if($to_domain == 'yourdomain.com') {
    return false;
  }
 
  return $mail;
}

osc_add_filter('pre_send_mail', 'block_mydomain_mails', 1);

Might throw error/issue, but did not find effective way to stop email :D
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #7 on: March 31, 2023, 03:16:46 PM »
Yes plugin use fake ID until real one is not avaiable.
You could try this to block mails sent to "your domain".

Code: [Select]
function block_mydomain_mails($mail, $params) {
  $to = isset($parmas['to']) ? $parmas['to'] : '';
  $to_parts = explode('@', $to);
  $to_domain = isset($to_parts[1]) ? $to_parts[1] : '';
 
  if($to_domain == 'yourdomain.com') {
    return false;
  }
 
  return $mail;
}

osc_add_filter('pre_send_mail', 'block_mydomain_mails', 1);

Might throw error/issue, but did not find effective way to stop email :D


where add this code??

*

MB Themes

Re: Stop sending emails
« Reply #8 on: March 31, 2023, 03:18:49 PM »
 :-\
Try some plugin index.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #9 on: March 31, 2023, 04:14:39 PM »
:-\
Try some plugin index.php


How stop core sending emails. like NEW AD PUBLISHED,AD EXPIRYED

*

MB Themes

Re: Stop sending emails
« Reply #10 on: April 03, 2023, 10:25:08 AM »
Bit confused,
Just gave you code. Use it or ignore it, it's on you.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by umimo on April 14, 2023, 08:31:26 AM
*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #11 on: April 06, 2023, 06:17:20 PM »
oc-includes => osclass ==> emails.php


Add this code to emails.php now not sending AD PUBLISHED,AD EXPIRYED




Do you this good idea or not ?  :-\



  $to = $item['s_contact_email'];
  $to_parts = explode('@', $to);
  $to_domain = isset($to_parts[1]) ? $to_parts[1] : '';


  if ($to_domain  == 'domain.com') {
    return null;
  } else {
    osc_sendMail($emailParams);
  }

*

MB Themes

Re: Stop sending emails
« Reply #12 on: April 11, 2023, 01:37:19 PM »
It should not send any email then. Does not differentiate type of mail, just recipient
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: Stop sending emails
« Reply #13 on: April 14, 2023, 08:31:18 AM »
It should not send any email then. Does not differentiate type of mail, just recipient


Working fine (TESTED)