Changeset - acc21c212336
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2010-10-26 01:03:56
ohnobinki@ohnopublishing.net
Make feedback form's email addresses configurable.
2 files changed with 15 insertions and 4 deletions:
0 comments (0 inline, 0 general)
feedback-submit.php
Show inline comments
 
@@ -2,7 +2,6 @@
 
        include_once 'inc/class.page.php';
 
        $feedbackpage = new page('Feedback');
 

	
 
	$toaddrs = array('ethanzonca@gmail.com, ngelderloos7@gmail.com, ohnobinki@ohnopublishing.net');
 
	$subject = '[SlatePermutate] - Feedback';
 
?>
 

	
 
@@ -48,9 +47,11 @@ Deployment = $fromdom
 

	
 
$from = "From: $visitormail\r\n";
 

	
 
foreach($toaddrs as $toaddr){
 
  mail($toaddr, $subject, $message, $from);
 
}
 
/* $feedback_emails has its default set in inc/class.page.inc, can be set in config.inc */
 
foreach($feedback_emails as $toaddr)
 
  {
 
    mail($toaddr, $subject, $message, $from);
 
  }
 

	
 

	
 
?>
inc/config.inc.example
Show inline comments
 
@@ -47,3 +47,13 @@
 
 */
 
/* $ga_trackers = array(); */
 
/* $ga_trackers = array('UA-XXXXXXXX-X'); */
 

	
 
/**
 
 * \brief
 
 *   List of email addresses to send feedback form submissions to.
 
 *
 
 * Set this to a PHP array of email addresses to which feedback
 
 * submissions should be mailed.
 
 */ 
 
/* $feedback_emails = array('ethanzonca@gmail.com, ngelderloos7@gmail.com, ohnobinki@ohnopublishing.net'); */
 
/* $feedback_emails = array('user@example.org'); */
0 comments (0 inline, 0 general)