| 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->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 | |||||
| When 'resume-file' is sent using POST method, it can be found in $_FILES array, but other parameters can be found in $_POST array | |||||
| When 'resume-file' is sent using POST method, it can be found in FILES array, but other parameters can be found in POST array | |||||
| When input (type file is used) in html form, need to add enctype="multipart/form-data" and setup: | When input (type file is used) in html form, need to add enctype="multipart/form-data" and setup: | ||||