$to = "leinadmofficial@gmail.com"; $from = 'Aromat Reg'; $fromName = 'Aromat Reg'; $subject = "New Aromat Account Created (DO NOT REPLY)"; $htmlContent = 'Someone just created an account. Please log into your Admin or Super User account to validate it.'; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: ' . $fromName . '<' . $from . '>' . "\r\n"; $headers .= 'Cc: welcome@example.com' . "\r\n"; $headers .= 'Bcc: welcome2@example.com' . "\r\n"; if (mail($to, $subject, $htmlContent, $headers)) { header("Location:successful/"); } else { echo 'Email sending failed.'; } header("Location:successful/"); } exit(); } } } }