vishwamano

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

commit 0c24ecf796567628c1ab8187fdcf920ccea7ec21
parent 161f0c7380bd97df0ac10a326bdc28775dfa3758
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sun,  5 Apr 2015 14:19:47 -0400

Contact form messages are sent to two address now.

	modified:   contact/index.php
	modified:   utils.php

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

diff --git a/contact/index.php b/contact/index.php @@ -25,7 +25,7 @@ require_once('../templating.php'); require_once($abs_path . '/utils.php'); if(isset($_POST['submit'])) { - $msg = send_message($vemail); + $msg = send_message($vemail, $vemail_other); $smarty->assign('c_msg', $msg); } diff --git a/utils.php b/utils.php @@ -145,8 +145,9 @@ function request_shoot($email, $other_email) { } -function send_message($email) { +function send_message($email, $other_email) { $to = $email; + $other_to = $other_email; $name = $_POST['name']; $email_address = $_POST['email']; $message = $_POST['message']; @@ -167,6 +168,7 @@ function send_message($email) { $headers .= "Reply-To: $email_address"; $sent = mail($to,$email_subject,$email_body,$headers); + $sent_other = mail($other_to,$email_subject,$email_body,$headers); if($sent == FALSE) { $alert_msg = '<strong> Error: Message not sent</strong>. Please try again.'