'error', 'message' => 'Please fill all fields correctly.']; } else { // IMPORTANT: Ask the user for the recipient email address. // For now, we use the default from .env or MailService config. $to = null; $subject = 'New Contact Form Submission from ' . $name; $res = MailService::sendContactMessage($name, $email, $message, $to, $subject); if (!empty($res['success'])) { $notification = ['status' => 'success', 'message' => 'Thank you! Your message has been sent.']; } else { // Do not expose detailed error messages to the user. error_log('MailService Error: ' . $res['error']); $notification = ['status' => 'error', 'message' => 'Sorry, there was an error sending your message. Please try again later.']; } } } ?> CrownEd - Luxury Education Platform

Unlock Your Academic Potential

Experience a new era of learning with AI-powered tools, extensive resources, and a community dedicated to excellence.

Get Started Now

Platform Features

Past Papers Archive

Access a vast and organized library of past examination papers. Search, filter, and download resources to prepare effectively.

AI Study Helper

Our intelligent assistant helps you tackle difficult questions, understand complex topics, and get personalized study recommendations.

Community & Collaboration

Connect with peers and educators. Share knowledge, form study groups, and grow together in a supportive environment.

About CrownEd

CrownEd was founded on the principle that every student deserves access to the best educational tools. We blend traditional resources with cutting-edge technology to create a learning experience that is not only effective but also inspiring. Our mission is to empower the next generation of leaders, thinkers, and innovators.

Get In Touch

This is for testing purposes only — Flatlogic does not guarantee usage of the mail server. Please set up your own SMTP in .env (MAIL_/SMTP_ vars) with our AI Agent.