-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail.php
More file actions
108 lines (70 loc) · 3.1 KB
/
mail.php
File metadata and controls
108 lines (70 loc) · 3.1 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require "PHPMailer/vendor/autoload.php";
function sendmail($to,$subject,$message,$attachment=null,$name=""){
$to=$to;
$subject=$subject;
$file="https://tatcoin.net/images/w_logo.png";
$body="<html>
<body style='color: #000; font-size: 16px; text-decoration: none; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; background-color: #efefef;'>
<div id='wrapper' style='max-width: 600px; margin: auto auto; padding: 20px;'>
<div id='logo' style='color:#E1B530;padding:10px;'>
<center><h1 style='margin: 0px;'>
<img src='https://getclickora.xyz/logo/logo1.png' style='width:150px'/>
</h1></center>
</div>
<div id='content' style='font-size: 16px; padding: 0px; background-color: #fff;
;position:relative;top:0px;'>
<h1 style='font-size: 22px; padding:10px; background-color:#4686ac; color:#fff'><center>$subject</center></h1>
<div style='padding:20px'>
$message
<p>
Best Regards!<br>
Management,<br>
clickora
</p>
</div>
<div id='footer' style='background-color:#4686ac;margin-bottom: 0px; padding: 10px 8px; text-align: center;position:relative;top:0px;color:#fff'>
Copyright clickora 2025.
</div>
</div>
<div id='footer1' style='margin-bottom: 20px; padding: 0px 8px; text-align: center;background-color: #e5e7e9; padding: 10px;position:relative;top:0px;'>
Have a problem? contact us. We're active from Mondays to Fridays 8am - 5pm, then Saturdays 10am - 4pm
</div>
</div>
</body>
</html>
";
$mail = new PHPMailer(true);
try {
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->Host = "smtp.hostinger.com";
$mail->Username = "support@getclickora.xyz";
$mail->Password = "@Clickora1";
// SSL
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;
$mail->Port = 465;
$mail->isHTML(true);
$mail->setFrom("support@getclickora.xyz", "clickora");
$mail->addAddress($to);
$mail->Subject = $subject;
$mail->Body = $body;
if ($attachment) {
$mail->addAttachment($attachment);
}
$mail->send();
return true;
} catch (Exception $e) {
error_log("Mailer Error: " . $mail->ErrorInfo);
return false;
}
/*$headers ='From: ctbankingconnect <support@ctbankingconnect.com>'. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html;charset=UTF-8"."\r\n";
$sendmail=mail($to,$subject,$body,$headers);
*/
}
?>