Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7665519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:35:21+00:00 2026-05-31T14:35:21+00:00

The idea is before i send the mail , I would like to use

  • 0

The idea is before i send the mail , I would like to use some code to check the content whether it use spam phrase . Here is some simple code

function isSpam($text)
{
    $pattern = "/\b(actual|filter|removed|because|it|contained|obscenities)\b/i";

    if(preg_match($pattern, $text, $match))
        return true;
    else
        return false;
}

The question are:

  1. Are there any way to improve the code such as check the occur time not only check if it is exist?

  2. Are there any plugin or code exist already so I do not have to redo it?

  3. Bayesian Spam Filter is all about a mail inbox ? Is it useful as an outgoing email filter?

Thank you for helping

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:35:22+00:00Added an answer on May 31, 2026 at 2:35 pm

    you can check any content if it contains any spam messages with a nice to use plugin called Akismet it is free and used by most of the CMS and blogging application like wordpress etc.

    check out the link http://akismet.com/

    the library itself is very easy to implement, just download the library from there website and use the provided API from there documentation. and you are good to go. i have found this to be very effective for myself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While related questions have been asked before I would like to see an idea
idea I would like to create a little app for myself to store ideas
Any idea on how to check whether that list is a subset of another?
I would like to restrict sending email to only a few addresses. My idea
I am trying to send a php script some content to be stored in
I would like to send and receive bytes over serial. My receiver should get
Let me explain the application. Before starting my question, I would like to say
Any idea how I express 'implements' in UML? I'm trying to write some actionscript
Any idea why the following code doesn't print the amount of characters in the
does anyone have an idea or developed before windows authentication through flex application. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.