contact form
This commit is contained in:
102
_home.php
102
_home.php
@@ -1,4 +1,3 @@
|
||||
|
||||
<!-- Title -->
|
||||
<title>International Institute of Montessori Teacher Training | IIMTT</title>
|
||||
<meta name="description" content="A leading Montessori Teacher Training Institute with UK Qualifications. Offering in-classroom Montessori education globally">
|
||||
@@ -824,18 +823,19 @@ include("_navbar.php");
|
||||
<div class="col-12 col-md-5">
|
||||
|
||||
<!-- Form -->
|
||||
<form>
|
||||
<form widget-search-form-sidebar class="widget-subscribe-form p-r-40" action="#" role="form" method="post"
|
||||
novalidate="novalidate">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
<!-- Input -->
|
||||
<input type="email" class="form-control" placeholder="Enter your email">
|
||||
<input type="email" aria-required="true" name="widget-subscribe-form-email" class="form-control required email" placeholder="Enter your email" id="email2">
|
||||
|
||||
</div>
|
||||
<div class="col-auto ml-n5">
|
||||
|
||||
<!-- Button -->
|
||||
<button class="btn bt" type="submit">
|
||||
<button id="widget-subscribe-submit-button dBtn" class="btn bt" onclick="downloadBr();" type="submit">
|
||||
Subscribe
|
||||
</button>
|
||||
|
||||
@@ -847,3 +847,97 @@ include("_navbar.php");
|
||||
</div> <!-- / .row -->
|
||||
</div> <!-- / .container -->
|
||||
</section>
|
||||
<!------------------------------------------------------brochure form--------------------------------------------------------->
|
||||
<script type="text/javascript">
|
||||
function modalSubmit() {
|
||||
var email = document.getElementById("modalEmail").value;
|
||||
var emailError2 = document.getElementById("emailError2");
|
||||
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
|
||||
if (email == '') {
|
||||
emailError2.style.display = "block";
|
||||
} else {
|
||||
if (reg.test(email) == false) {
|
||||
emailError2.style.display = "block";
|
||||
} else {
|
||||
emailError2.style.display = "none";
|
||||
document.getElementById("modalEmail").value = '';
|
||||
document.getElementById("thankMsg").style.display = "block";
|
||||
saveEmail(email);
|
||||
sendEmail(email);
|
||||
sendAdmin("enquiry@beanstalkedu.com", email);
|
||||
sendAdmin("teenybeans.info@gmail.com", email);
|
||||
}
|
||||
}
|
||||
|
||||
// document.getElementById("thankMsg").style.display = "block";
|
||||
|
||||
|
||||
}
|
||||
var message = '<html><body><p>Welcome to Teenybeans. You have showed interest to know more about us and here it is. You will find our Brochure Link in this mail. Download the brochure and know everything about us. <br>And for more information you can visit our website <a href="https://teenybeans.in">here</a>.<br><a href="https://teenybeans.in/DOCS/Preschool-Business-Proposal.pdf" download>Download Your Brochure Now!</a><br>-Team Teenybeans</p></body></html>';
|
||||
function sendEmail(email) {
|
||||
let formData = new FormData();
|
||||
formData.append('sendMail', 'true');
|
||||
formData.append('reciever', email);
|
||||
formData.append('sender', 'Teenybeans');
|
||||
formData.append('senderMail', 'no-reply@teenybeans.in');
|
||||
formData.append('subject', "Teenybeans Brochure");
|
||||
formData.append('message', message);
|
||||
fetch("https://mailapi.teenybeans.in/", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
}).then(
|
||||
function (response) {
|
||||
response.json().then(function (data) {
|
||||
console.log(data);
|
||||
});
|
||||
}
|
||||
)
|
||||
.catch(function (err) {
|
||||
console.log('Fetch Error :-S', err);
|
||||
});
|
||||
}
|
||||
function saveEmail(email, phn) {
|
||||
let formData = new FormData();
|
||||
formData.append('formName', 'teenyBeansBrochure');
|
||||
formData.append('Email', email);
|
||||
// formData.append('Address', addr);
|
||||
fetch('https://api.teenybeans.in/API/contactFormProcessor/v1/', {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
// window.location.href = "contact-back";
|
||||
}
|
||||
);
|
||||
}
|
||||
function sendAdmin(sendEmail, email) {
|
||||
// ---------Mail sent-----------------
|
||||
|
||||
let formData = new FormData();
|
||||
formData.append("sendMail", "true");
|
||||
formData.append("reciever", sendEmail);
|
||||
formData.append("sender", "Teenybeans");
|
||||
formData.append("senderMail", "no-reply@teenybeans.in");
|
||||
formData.append("subject", "New Modal Brochure Form Fillup");
|
||||
formData.append(
|
||||
"message",
|
||||
"<html><body><p>New Modal form (Blog) is filled up.</p><br><p>User Details:-</p><table><tr><th>Email:- </th><td>:- " +
|
||||
email +
|
||||
"</td></tr></table></body></html>"
|
||||
);
|
||||
fetch("https://mailapi.teenybeans.in/", {
|
||||
method: "POST",
|
||||
body: formData
|
||||
})
|
||||
.then(function (response) {
|
||||
response.json().then(function (data) {
|
||||
// console.log(data);
|
||||
});
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.log("Fetch Error :-S", err);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -227,7 +227,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
success.style.display = "block";
|
||||
@@ -265,7 +264,7 @@ include("_navbar.php");
|
||||
phn +
|
||||
"</td></tr><tr><th>Address:- </th><td>:- " +
|
||||
addr +
|
||||
"</td></tr><tr><th>Course:- </th><td>:- " +
|
||||
"</td></tr><tr><th>Service:- </th><td>:- " +
|
||||
subject +
|
||||
"</td></tr><tr><th>Message:- </th><td>:- " +
|
||||
message +
|
||||
|
||||
@@ -364,7 +364,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("cheranmanagar@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -351,7 +351,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("chitlapakkam@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -351,7 +351,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("dimapur@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -356,7 +356,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("hanoi@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -352,7 +352,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("howrahmaidan@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -354,7 +354,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("imphal@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -350,7 +350,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("kharagpur@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -351,7 +351,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("micolayout@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -352,7 +352,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("nabagram@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -346,7 +346,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("nairobi@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -352,7 +352,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("patuli@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -1006,7 +1006,6 @@ for close to a decade now.</span>
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
success.style.display = "block";
|
||||
|
||||
@@ -351,7 +351,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("sodepur@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -350,7 +350,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("takiroad@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
@@ -351,7 +351,6 @@ include("_navbar.php");
|
||||
// sendMail("enquiry@atheneumglobal.education");
|
||||
sendMail("teenybeans.info@gmail.com");
|
||||
sendMail("enquiry@beanstalkedu.com");
|
||||
sendMail("enquiry@iimtt.org");
|
||||
sendMail("yavatmal@iimtt.org");
|
||||
// sendMail("chatterjeegouravking@gmail.com");
|
||||
sendWelcomeMail(email);
|
||||
|
||||
Reference in New Issue
Block a user