setQuery("SELECT * FROM auth_users WHERE auth_users.email='$emailuser'"); $checkmail->execute(); if (!empty($checkmail->getColumnVal("id"))) { $varmailrepeat = 'Y'; ?> query($query); $inserttrue = 'Y'; // Chiudi la connessione al database $mysqli->close(); //Now include the following following files based //on the correct file path. Third file is required only if you want to enable SMTP. require 'phpmailer/src/Exception.php'; require 'phpmailer/src/PHPMailer.php'; require 'phpmailer/src/SMTP.php'; //mail to client $mail = new PHPMailer(true); try { $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = "smtp.office365.com"; // Specify main and backup server $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = "noreply@cimac.it"; // SMTP username $mail->Password = "Fol42937"; // SMTP password $mail->SMTPSecure = "tls"; // Enable encryption, 'ssl' also accepted $mail->Port = 587; $mmessage = "mailnewuser"; include('include/mailnewuser.php'); // Email body content $htmlContent = $mailmessage1; $mail->From = $fromaddresssmail; $mail->FromName = 'CIMAC Application Form System'; $mail->addAddress($emailuser); // Add a recipient $mail->Subject = "Creazione Nuovo Utente"; $mail->Body = $htmlContent; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } // mail to Marco for new user $mail = new PHPMailer(true); try { $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = $mailhost; // Specify main and backup server $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = $mailusername; // SMTP username $mail->Password = $mailpassword; // SMTP password $mail->SMTPSecure = $mailmethod; // Enable encryption, 'ssl' also accepted $mail->Port = $mailport; // Email body content $mail->From = $fromaddresssmail; $mail->FromName = 'CIMAC Application Form System'; $mail->addBCC('m.piccolini@cimac.it'); // Add a recipient $mail->addBCC($csmail); // Add a recipient $mail->addBCC($csmail3); $mail->addBCC('info@acscreativesolutions.com'); $mail->Subject = 'Nuovo Utente'; $mail->Body = "Ciao! E' stato inserito un nuovo Utente $emailuser "; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } } ?>
Presto riceverai una mail per impostare la tua prima password e poi potrai procedere con l'uso del portale!
Soon you will receive an email in order to setup your first password and then you can start to use the portal!
Hai già un account? / Already have an account ? Log in
Privacy Policy ITA / Privacy Policy ENG - Cookie Policy ITA / Cookie Policy ENG