-
Notifications
You must be signed in to change notification settings - Fork 0
/
tesztmail.php
52 lines (44 loc) · 1.21 KB
/
tesztmail.php
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
require_once 'config/db.php';
$server = mysqli_connect($hostDB,$userDB,$passDB,$tableDB);
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'PHPMailer/src/Exception.php';
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';
$template = <<<TEMPLATE
<div class="col-lg-6 col-md-6">
<h3>D</h3>
<h4>Erősségek</h4>
<p>Célkitűzés, Probléma-megoldás, Döntés</p>
<h4>Gyenge pontok</h4>
<p>Nem óvatos, hibák keresése, lerohanás</p>
<h4>Szükségletek</h4>
<p>Hatalom, Ellenőrzés, önrendelkezés</p>
<p></p>
</div>
TEMPLATE;
// $template = utf8_encode($template);
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPDebug = 2;
$mail->Host = 'smtp.viapangroup.com';
$mail->Port = 2525;
$mail->SMTPAuth = false;
$mail->SMTPSecure = '';
$mail->SMTPAutoTLS = false;
$mail->Username = '[email protected]';
$mail->Password = '7kBd5ab8';
$mail->CharSet = 'UTF-8';
$mail->setFrom('[email protected]','Viapangroup');
$mail->addAddress('[email protected]', 'Miserable Cunt');
$mail->Subject = 'DIE';
$mail->Body = $template;
$mail->IsHTML(true);
if (!$mail->Send()) {
// echo $mail->ErrorInfo;
} else {
echo 'Sent';
}
header("Content-Type: text/json");
?>