vishwamano

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

commit 161f0c7380bd97df0ac10a326bdc28775dfa3758
parent 0ccd5ee6e2c2faef72768376c000aae80745d2e4
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sun,  5 Apr 2015 14:18:49 -0400

Shoot request registrations are sent to two addresses now.

	modified:   as/photography-services/index.php
	modified:   utils.php

Diffstat:
as/photography-services/index.php | 2+-
utils.php | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/as/photography-services/index.php b/as/photography-services/index.php @@ -26,7 +26,7 @@ require_once($abs_path . '/utils.php'); if(isset($_POST['submit'])) { - $msg = request_shoot($vemail); + $msg = request_shoot($vemail, $vemail_other); $smarty->assign('ps_msg', $msg); } diff --git a/utils.php b/utils.php @@ -90,8 +90,9 @@ function register($email, $other_email) { } -function request_shoot($email) { +function request_shoot($email, $other_email) { $to = $email; + $other_to = $other_email; $name = $_POST['name']; $email_address = $_POST['email']; $phone = $_POST['phone']; @@ -123,6 +124,7 @@ function request_shoot($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 successfully requested for <strong>' . $shoot_t . '</strong> on <strong>'