alert('Email Address Already Exists')"; }else if ($exists == "p") { echo ""; }else if($exists == "ep"){ echo ""; } else { if (strtolower($country) === 'zimbabwe') { echo ""; } else { $query = "INSERT INTO `users` VALUES ('0', '$name', '$uname', '$country', '$phone', '$email', '$password', '0', '0', '0', '0', 'none', 'INACTIVE', '2', '$reff', '$ref', '0', '0')"; if ($query_run = mysqli_query($connection, $query)) { // Function to send verification email using PHPMailer function sendVerificationEmail($to, $name, $hash, $password) { try { $emailer = new TradprofxEmail(); $subject = "Welcome to Tradprofx - Verify Your Account"; $message = "

Welcome to Tradprofx!

Dear $name,

Congratulations! You've successfully opened your account with Tradprofx.

Your Login Details:

Email: $to

Password: $password

We're thrilled to have you on board. Take a moment to explore our services and select what suits you best. We're continuously enhancing our offerings to ensure your trading experience is top-notch.

⚠️ Account Verification Required

To get started, please verify your account by clicking on the button below:

✅ Verify My Account

Once verified, you can:

Happy trading!

Best regards,
The Tradprofx Team

"; // Send to user and notify admin return $emailer->sendEmail($to, $subject, $message, $name, [], true); } catch (Exception $e) { error_log("Registration email failed: " . $e->getMessage()); return false; } } // Usage in your register.php if (sendVerificationEmail($email, $name, $hash, $password)) { echo ""; } else { echo "Failed to send email. Please check your server configuration or try again later."; } } else { echo ""; } } } } else{ echo ""; } } ?> Tradprofx - Sign Up

Join
Tradprofx

Start your professional trading journey with us

1
Personal Info
2
Location
3
Security

Your location helps us provide region-specific features and optimal server connections for faster trading.

Password Requirements:

At least 8 characters long
Contains uppercase and lowercase letters
Includes at least one number or special character
Step 1 of 3
Already have an account? Login
Secure & Safe
Tested
Trustworthy
Optimized