SMTPDebug = 4; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username ='rajabuhamisi30@gmail.com'; // SMTP username $mail->Password = 'asha2003'; // SMTP password $mail->SMTPSecure = 'tls'; //$mail->SMTPSecure ='PHPMailer::ENCRYPTION_STARTTLS'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 25; // TCP port to connect to $mail->setFrom('rajabuhamisi30@gmail.com', 'baas associatives'); $mail->addAddress($_POST['mail']); // Add a recipient //$mail->addAddress('ellen@example.com'); // Name is optional $mail->addReplyTo('rajabuhamisi30@gmail.com'); //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'BAAS ASSOCIATES'; $mail->Body = '

welcome:'.$_POST['username'].'baas associates

For this time we test our email system to our client and we say for any incovenience causes by this

welcome baas associates for better services

'; //$mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; if(!$mail->send()) { // echo 'Message could not be sent.'; $_SESSION['message1']=' '; // echo 'Mailer Error: ' . $mail->ErrorInfo; } else { $mail=$_POST['mail']; $sql="insert into booking(book_id,book_username,book_phone,book_email,book_comment1,book_select,book_comment2,book_comment3)values"; $sql.="(null,'$username','$phonenumber','$mail','$comment1','$business','$comment2','$comment3')"; $query=mysqli_query($conn,$sql); $_SESSION['message1']=' '; } } session_destroy(); ?> Booking
BOOK AN AUDIT
please add your name
add your phonenumber
add valid email

Choose your firm