Added images in the Background and Projects sections, ITN certification icon fixed
This commit is contained in:
1 parent
72f67633bd
commit
607b9bc42d
34 files changed
+905
-344
No files matched your search
+9
-8
@@ -38,6 +38,7 @@ require $private . '/PHPMailer/SMTP.php';
|
||||
|
||||
// ---------- Request checks ----------
|
||||
if (($_SERVER['REQUEST_METHOD'] ?? '') !== 'POST') {
|
||||
header('Allow: POST');
|
||||
reply(405, false, 'Method not allowed.');
|
||||
}
|
||||
$origin = $_SERVER['HTTP_ORIGIN'] ?? '';
|
||||
@@ -97,15 +98,15 @@ if (count($hits) >= (int) ($cfg['max_per_hour'] ?? 5)) {
|
||||
$mail = new PHPMailer(true);
|
||||
try {
|
||||
$mail->isSMTP();
|
||||
$mail->Host = $cfg['smtp_host'] ?? 'smtp.protonmail.ch';
|
||||
$mail->Port = (int) ($cfg['smtp_port'] ?? 587);
|
||||
$mail->SMTPSecure = $cfg['smtp_secure'] ?? PHPMailer::ENCRYPTION_STARTTLS;
|
||||
$mail->Host = $cfg['smtp_host'] ?? 'smtp.protonmail.ch';
|
||||
$mail->Port = (int) ($cfg['smtp_port'] ?? 587);
|
||||
$mail->SMTPSecure = $cfg['smtp_secure'] ?? PHPMailer::ENCRYPTION_STARTTLS;
|
||||
$mail->SMTPAutoTLS = $mail->SMTPSecure !== '';
|
||||
$mail->SMTPAuth = $cfg['smtp_auth'] ?? true;
|
||||
$mail->Username = $cfg['smtp_user'];
|
||||
$mail->Password = $cfg['smtp_token'];
|
||||
$mail->CharSet = PHPMailer::CHARSET_UTF8;
|
||||
$mail->Timeout = 15;
|
||||
$mail->SMTPAuth = $cfg['smtp_auth'] ?? true;
|
||||
$mail->Username = $cfg['smtp_user'];
|
||||
$mail->Password = $cfg['smtp_token'];
|
||||
$mail->CharSet = PHPMailer::CHARSET_UTF8;
|
||||
$mail->Timeout = 15;
|
||||
|
||||
// Proton only accepts the address tied to the token as sender.
|
||||
$mail->setFrom($cfg['smtp_user'], 'Portfolio: ' . $name);
|
||||
|
||||
Reference in new issue
Block a user