Skip to content

Commit

Permalink
Summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Relius-TP committed Oct 25, 2023
1 parent 1d228d3 commit 5bd6233
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 170 deletions.
32 changes: 32 additions & 0 deletions MailManager.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
// Include PHPMailer library
require 'PHPMailer/PHPMailerAutoload.php';

// Configuration
$toEmail = '[email protected]'; // Ganti dengan alamat email penerima
$subject = 'Pesan dari Formulir Kontak';
$fromEmail = $_POST['email'];
$fromName = $_POST['name'];
$message = $_POST['comment'];

// Create a new PHPMailer instance
$mail = new PHPMailer;


// Set sender and recipient
$mail->setFrom($fromEmail, $fromName);
$mail->addAddress($toEmail);

// Set email subject and message
$mail->Subject = $subject;
$mail->Body = $message;

// Send the email
if ($mail->send()) {
// Jika email berhasil dikirim
echo 'Pesan Anda telah berhasil terkirim.';
} else {
// Jika ada kesalahan dalam pengiriman
echo 'Pesan Anda tidak dapat terkirim. Error: ' . $mail->ErrorInfo;
}
?>
Binary file not shown.
58 changes: 0 additions & 58 deletions assets/imgs/analytics.svg

This file was deleted.

10 changes: 0 additions & 10 deletions assets/imgs/pencil-case.svg

This file was deleted.

42 changes: 0 additions & 42 deletions assets/imgs/responsive.svg

This file was deleted.

5 changes: 0 additions & 5 deletions assets/imgs/scooter.svg

This file was deleted.

26 changes: 0 additions & 26 deletions assets/imgs/shipped.svg

This file was deleted.

Loading

0 comments on commit 5bd6233

Please sign in to comment.