Skip to content
SafeMail AI

SafeMail AI

AI-powered shield against phishing email scams now

Created on 10th January 2026

•

SafeMail AI

SafeMail AI

AI-powered shield against phishing email scams now

The problem SafeMail AI solves

Problem Statement:-
Email scams and phishing attacks are a major source of fraud and account compromise. Users often have difficulty identifying malicious emails, especially those that mimic legitimate communication. SafeMail AI helps users detect these threats accurately and efficiently.
Solution :-
SafeMail AI provides a simple and effective way for users to verify whether an email is safe or potentially harmful. Users can paste the email content into the web interface, where the system analyzes it using a trained machine learning model along with rule-based checks. The application identifies phishing patterns, detects risky keywords, highlights suspicious parts of the email, and scans embedded URLs for unsafe behavior. It then displays a clear result with a confidence score and risk level (Low, Medium, or High), helping users instantly understand the threat and take informed action.

Challenges I ran into

Challenges I Ran Into

One major challenge I faced was integrating the machine learning model with the Flask backend. Initially, the app failed to load because the .pkl model files were not being found correctly, which caused runtime errors. I solved this by using absolute paths and adding a robust loading function that clearly reports missing files.

Another hurdle was handling HTML rendering in Jinja when highlighting risky words inside the email text. The highlighted output was either breaking the layout or being escaped entirely. I fixed this by safely escaping user input and returning it as Markup, ensuring that the highlighted words appeared correctly without introducing security risks.

I also encountered issues with running the project on Windows PowerShell due to execution policy restrictions when activating the virtual environment. After understanding the error, I adjusted the command and used an alternative activation method, which allowed me to proceed smoothly.

Each of these problems taught me how to debug more effectively, read error messages carefully, and build a more stable and secure application.

Tracks Applied (1)

AOPS

SafeMail AI fits into the AOPS track because it applies Artificial Intelligence to solve a real-world operational securi...Read More

Discussion

Builders also viewed

See more projects on Devfolio