Turning off emails when an ad is posted

Discussion in 'Customizations' started by sbhkma, Jun 8, 2010.

  1. sbhkma Customer

    Is it possible to turn OFF the email notices sent out when an ad is posted?
  2. seymourjames All Hands On Deck

    Its a good question and one I am working on doing for one of my own sites: Annonces Immobilières. In my case I am trying to suppress emails going to admin.
  3. sbhkma Customer

    That is exactly what I need as well. Want to stop the admin emails every time an ad is posted. If anyone knows how, please share! I am using designer version 4.1.10, not developer.
  4. seymourjames All Hands On Deck

    I think this should work.

    Comment out the sendmail line in includes/classes/kernel/Orders.php

    in Orders.php line 852 //$Mailer->sendMail($to, $content, $vars);


    This will stop the customer getting an email. If you also comment out line 786, the admin will not get an email either. You should also comment out line 1155 in Listings.php if the admin is not to get an email when a listing is modified.

    It may create other issues sothis needs to be tested thoroughly. You will need developer version to do this.
  5. sbhkma Customer

    So there's no way to do this without having the developer version? And it seems like such a basic option to have.
  6. seymourjames All Hands On Deck

    That is subjective of course. There are few cases where you would really want to do this. I wish to do it simply because i have a single user system - only one advertiser.
  7. freeze2 Super Moderator

    I'm looking at doing the same thing, can you tell me if it has been working for you without problems.

    Thanks!
  8. seymourjames All Hands On Deck

    It worked for me and has done for months.
  9. freeze2 Super Moderator

    Thanks for the info...this might even be a nice option in a future release to be able to control via the admin.
  10. michael Just get on with it!

    If you don't have the developer version why not just set up a filter or message rule depending on which email client you are using, to automatically delete those emails?
  11. freeze2 Super Moderator

    That was my 2nd option, the only hurdle I have with this option is that many of our clients handle their own email and mail servers, making it difficult for me to set-up the filters.
  12. seymourjames All Hands On Deck

    Just do it the way I described in the original response. It works fine.
  13. freeze2 Super Moderator

    Did and done...works great...thanks for the tip!

Share This Page