Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Update cart.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomiwa-Ot authored Apr 13, 2022
1 parent 79c39fe commit d869b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$statement = $pdo->prepare("INSERT INTO transactions (name, email, address, details, timestamp) VALUES (?, ?, ?, ?, ?)");
$statement->execute(array($_SESSION['name'], $_SESSION['email'], $_SESSION['address'], $details, $timestamp));
$email = new \SendGrid\Mail\Mail();
$email->setFrom("donotreply@YOUR_SENGRID_DOMAIN", "Yem-Yem");
$email->setFrom("donotreply@YOUR_SENGRID_DOMAIN", "COMPANY NAME");
$email->setSubject("Invoice");
$email->addTo($_SESSION['email'], $_SESSION['name']);
$message = generateInvoice($timestamp);
Expand Down Expand Up @@ -120,4 +120,4 @@
</div>
</div>
<?php endif ?>
<?php require __DIR__ . '/footer.php'; ?>
<?php require __DIR__ . '/footer.php'; ?>

0 comments on commit d869b36

Please sign in to comment.