forked from jribbers/cvcreate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail.php
More file actions
52 lines (41 loc) · 1.11 KB
/
mail.php
File metadata and controls
52 lines (41 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include 'inc/package.php';
include 'inc/connection.php';
define('PAGE_TITLE', 'Home');
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
$additionalCSS = ['landing'];
require 'inc/classes/PHPMailer/PHPMailerAutoload.php';
$mail = new PHPMailer();
$password = "MyLittlesnaHFan123";
$email = "infocvcreate@gmail.com";
$mask = 'no-reply@cvcreate.com';
$mail->CharSet = "utf-8";
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Username = $email;
$mail->Password = $password;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = "465";
$mail->setFrom($mask, 'Sir Lord Madam Queen Elisabeth the fourtieth');
$mail->AddAddress('jolien_ribbers@hotmail.com', 'J. Ribbers');
$mail->Subject = 'Imigaration | Australian House of order.';
$mail->IsHTML(true);
$mail->Body = 'Hi there ,
<br />
this mail was sent using PHPMailer...
<br />
cheers... :)';
if($mail->Send())
{
echo "Message was Successfully Send :)";
}
else
{
echo "Mail Error - >".$mail->ErrorInfo;
}
$view = 'views/index.php';
include $template;
?>