Przeglądaj źródła

Added readme.md file

master
Nikola Ignjatovic 5 lat temu
rodzic
commit
b03d4155f4
1 zmienionych plików z 5 dodań i 7 usunięć
  1. 5
    7
      README.md

+ 5
- 7
README.md Wyświetl plik

First of all, this project contains the following file types: First of all, this project contains the following file types:


1. Type of file which sends an email 1. Type of file which sends an email
1. **contact_form.PHP** - sends email from homepage contact form and
1. **job_apply.PHP** which sends email from apply form),
1. **contact_form.php** - sends email from homepage contact form and
1. **job_apply.php** which sends email from apply form),


1. Type of file which is included in every single page 1. Type of file which is included in every single page




Before that, needed to setup email: Before that, needed to setup email:


$mail = new PHPMailer(); //make instance of PHPMailer

``` $mail = new PHPMailer(); //make instance of PHPMailer
$mail->IsSMTP(); // telling the class to use SMTP $mail->IsSMTP(); // telling the class to use SMTP

$mail->SMTPSecure = "tls"; // enable SMTP authentication $mail->SMTPSecure = "tls"; // enable SMTP authentication


$mail->Host = "smtp.site.com"; // sets the SMTP server $mail->Host = "smtp.site.com"; // sets the SMTP server
$mail->IsHtml(true); //enable html message instead of text $mail->IsHtml(true); //enable html message instead of text




$mail->send(); //send email
$mail->send(); //send email```








Every single page uses keywords (diligent, software, development, company, it, and specific words for that domain). It is located in meta (keywords) in the head of the document Every single page uses keywords (diligent, software, development, company, it, and specific words for that domain). It is located in meta (keywords) in the head of the document


In order to use google captcha in html form, needed to include <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" ></script> after including **custom.js** script, after that need to add one html element for captcha above the submit button. Define id to that element and data-sitekey="site_key", where sitekey is google capctha key. After that at the end of custom.js file (before onloadCallback function) add new function for verification and call it in onloadCallback function
In order to use google captcha in html form, needed to include ```<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" ></script>``` after including **custom.js** script, after that need to add one html element for captcha above the submit button. Define id to that element and data-sitekey="site_key", where sitekey is google capctha key. After that at the end of custom.js file (before onloadCallback function) add new function for verification and call it in onloadCallback function

Ładowanie…
Anuluj
Zapisz