01.
$mail
=
new
PHPMailer;
02.
$mail
->isSMTP();
03.
$mail
->SMTPDebug = 0;
04.
$mail
->Debugoutput =
'html'
;
05.
$mail
->CharSet =
"UTF-8"
;
06.
$mail
->Host =
"smtp.gmail.com"
;
07.
$mail
->Port = 587;
08.
$mail
->SMTPSecure =
'tls'
;
09.
$mail
->SMTPAuth = true;
10.
$mail
->Username =
"<a href="
/cdn-cgi/l/email-protection
" class="
__cf_email__
" data-cfemail="
552d2d2d2d2d2d2d2d153238343c397b363a38
">[email protected]</a>"
;
11.
$mail
->Password =
"123123123"
;
12.
13.
$mail
->setFrom(
'<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9de5e5e5e5e5e5e5e5ddfaf0fcf4f1b3fef2f0">[email protected]</a>'
,
'UFT'
);
14.
$mail
->addAddress(
'<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a22222222222222221a3d373b333674393537">[email protected]</a>'
);
15.
16.
$mail
->Subject =
"=?UTF-8?B?"
.
base64_encode
(
'UFT'
) .
"?="
;
17.
foreach
(
$_POST
[
'fileN'
]
as
$item
)
18.
$mail
->msgHTML(
$item
);
19.
20.
if
(!
$mail
->send()) {
21.
echo
"Mailer Error: "
.
$mail
->ErrorInfo;
22.
}
else
{
23.
echo
"Message sent! : "
.
$EM_EMAIL
.
"<BR>"
;
24.
$mail
->clearAddresses();
25.
}