UC Davis logo

Sustainable 2nd Century

Sustainable 2nd Century

Join our networks

  • Instagram

Contact Us

Please contact Facilities Management if you have a work order request for servicing recycling bins or for new recycling bins.

Your feedback, comments or suggestions are always welcome. Please use the form below to submit them to us. Thank you.

setFrom(array($email => $name)) ->setTo(array($to_email => $to_name)) ->setBody($body); if ($mailer->send($message)) { print <<Thank you for contacting us

Your message was sent to {$to_name}.

END; } else { print ("

Sorry, there was an error:

"); print ("

The form data could not be sent.

"); echo '

Caught exception: ', $e->getMessage(), "

"; } elseif (isset($_REQUEST['submit']) && ($_REQUEST['firstname'] != '')): echo "

Thank you for your message!

"; else: ?>
'; echo '
'; echo '
'; $default_name = "Office of Environmental Stewardship and Sustainability"; $default_email = "sustainability@ucdavis.edu"; $default_recipient = '' . $default_name . '' . '' . ''; // start table row for message recipient info echo '
'; echo '
'; if (isset($_GET['who'])): $email = $_GET['who'] . "@ucdavis.edu"; $ds = ldap_connect("ldap.ucdavis.edu"); // must be a valid LDAP server! // $ds = ldap_connect("ldap.ucdavis.edu") or die("Could not connect to ldap.ucdavis.edu"); if ($ds): $query_string = "(&(mail=$email))"; $r = ldap_bind($ds); // this is an "anonymous" (read only) bind $sr = ldap_search($ds, "ou=People, dc=ucdavis, dc=edu", "$query_string"); $info = ldap_get_entries($ds, $sr); if ($info["count"] != 1): // use default name and e-mail if none or more than one found // echo $default_recipient; echo '' . $_GET['who'] . ''; echo ''; echo ''; else: echo '' . $info[0]["cn"][0] . ''; echo ''; echo ''; endif; ldap_close($ds); else: echo $default_recipient; //echo "Unable to connect to LDAP server"; endif; else: // here if user gets to this page with no "who" parameter specified echo $default_recipient; endif; // end row for message recipient info echo '
'; // end forminput echo '
'; // end formpair echo '
'; echo '
'; // end oddsection ?>
*
*
*
*