vishwamano

source of vishwamano.com
git clone git://git.ricketyspace.net/vishwamano.git
Log | Files | Refs

commit 6912f8227eb6f7f9842cb8abe43b24d760229c28
parent 024abaaf4fad687ccc26b3f25c12d594bd109855
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sun,  5 Apr 2015 13:47:18 -0400

Registrations are sent to two inboxes.

	modified:   as/photography-classes/index.php
	modified:   templating.php
	modified:   utils.php

Diffstat:
as/photography-classes/index.php | 2+-
templating.php | 1+
utils.php | 4+++-
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/as/photography-classes/index.php b/as/photography-classes/index.php @@ -26,7 +26,7 @@ require_once($abs_path . '/utils.php'); if(isset($_POST['submit'])) { - $msg = register($vemail); + $msg = register($vemail, $vemail_other); $smarty->assign('pc_msg', $msg); } diff --git a/templating.php b/templating.php @@ -31,6 +31,7 @@ $smarty->setCacheDir($abs_path . '/themes/bs3/cache'); $smarty->setConfigDir($abs_path . '/themes/bs3/configs'); $vemail = 'vishwa91photography@gmail.com'; +$vemail_other = 'hello@vishwamano.com'; $semail = 'rsiddharth@ninthfloor.org'; $lemail = 'rsd@grus.home'; $smarty->assign('doc_root', $doc_root); \ No newline at end of file diff --git a/utils.php b/utils.php @@ -35,8 +35,9 @@ function get_images($directory) { return $images; } -function register($email) { +function register($email, $other_email) { $to = $email; + $other_to = $other_email; $name = $_POST['name']; $email_address = $_POST['email']; $phone = $_POST['phone']; @@ -69,6 +70,7 @@ function register($email) { $headers .= "Reply-To: $email_address"; mail($to,$email_subject,$email_body,$headers); + mail($other_to,$email_subject,$email_body,$headers); $alert_msg = 'You have registered for <strong>' . $course . '</strong> <strong>Vishwa Manoharan</strong> will get back to you soon.';