Exemple #1
0
Time support request sent:
' . date('g:i a \\o\\n n/j/Y') . '

User web browser:
' . $_SERVER['HTTP_USER_AGENT'] . '

Portal domain:
' . $domain . '

++++++++++++++++++++++++++++++++++++++++++++++++++++
          H A V E   A   N I C E   D A Y ! 
++++++++++++++++++++++++++++++++++++++++++++++++++++

';
    // send the email and show a confirmation page
    if (mystery_send_email($to, $from, $subject, $body, '', $cc, $bcc, $reply_to)) {
        echo '
		<h2>Support request sent</h2>
		
		<p>Your support request has been sent.  If appropriate, we will contact you shortly.</p>
		';
    } else {
        echo '
		<h2>Error! Message not sent</h2>
		
		<p>Your message could not be sent.  Please contact us directly via email at <a href="mailto:portal-support@concord.org">portal-support@concord.org</a></p>
		
		';
    }
} else {
    $name_value = '';
Exemple #2
0
    $results = mystery_select_query($query, $params, 'portal_dbh');
    if (count($results) > 0) {
        // if found, send out a password reminder
        $subject = 'ITSI Portal Password Reminder';
        $from = 'ITSI Portal <*****@*****.**>';
        $to = $results[0]['member_email'];
        $body = 'Dear ' . $results[0]['member_first_name'] . ' ' . $results[0]['member_last_name'] . ':' . "\n";
        $body .= '' . "\n";
        $body .= 'Someone, probably you, requested a password reminder from the ITSI portal. Your current password information is listed below.' . "\n";
        $body .= '' . "\n";
        $body .= 'Server: http://itsi-portal.concord.org/' . "\n";
        $body .= 'Username: '******'member_username'] . "\n";
        $body .= 'Password: '******'member_password_ue'] . "\n";
        $body .= '' . "\n";
        $body .= 'If you have any difficulties, please contact webmaster@concord.org.' . "\n";
        if (mystery_send_email($to, $from, $subject, $body)) {
            echo '
			<h1>Reminder Sent!</h1>
			
			<p>A password reminder has been sent to your email account.  If you don\'t receive it within a few minutes, please be sure to check your Junk Mail or Spam folder 
			as it may have been misclassified.  If you still don\'t get the message, please send an email to <a href="mailto:webmaster@concord.org">webmaster@concord.org</a>.</p>
			';
        } else {
            $errors = array();
            $errors[] = 'Could not send email message';
            echo portal_generate_error_page($errors);
        }
    } else {
        // if not found, show an error message for them to contact the webmaster
        $errors = array();
        $errors[] = 'Email address not found in the system';