Pārlūkot izejas kodu

Added readme.md file

master
Nikola Ignjatovic pirms 5 gadiem
vecāks
revīzija
b03d4155f4
1 mainītis faili ar 5 papildinājumiem un 7 dzēšanām
  1. 5
    7
      README.md

+ 5
- 7
README.md Parādīt failu

@@ -22,8 +22,8 @@ Go to (http://176.104.105.124:3000/diligent/diligent-site.git/), clone this repo
First of all, this project contains the following file types:

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

@@ -41,10 +41,8 @@ For email sending, needed to make an instance of PHPMailer and use method *send*

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->SMTPSecure = "tls"; // enable SMTP authentication

$mail->Host = "smtp.site.com"; // sets the SMTP server
@@ -82,7 +80,7 @@ For email sending, needed to make an instance of PHPMailer and use method *send*
$mail->IsHtml(true); //enable html message instead of text


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



@@ -102,4 +100,4 @@ For checking validation of file, needed to use (https://www.freeformatter.com/ht

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

Notiek ielāde…
Atcelt
Saglabāt