$body .= "Click this link to listen to the message:\n{$_REQUEST['RecordingUrl']}.mp3";
    mail($myemail, "New Voicemail Message from " . $from, $body, $headers);
    die;
} else {
    if (strtolower($_REQUEST['TranscriptionStatus']) == "failed") {
        $body = "You have a new voicemail from " . $from . "\n\n";
        $body .= "Click this link to listen to the message:\n{$_REQUEST['RecordingUrl']}.mp3";
        mail($myemail, "New Voicemail Message from " . $from, $body, $headers);
        die;
    } else {
        if (strlen($_REQUEST['RecordingUrl'])) {
            $response->say("Thanks.  Good bye.");
            $response->hangup();
            if (strlen($transcribe) && strtolower($transcribe) != 'true') {
                $body = "You have a new voicemail from " . $from . "\n\n";
                $body .= "Click this link to listen to the message:\n{$_REQUEST['RecordingUrl']}.mp3";
                mail($myemail, "New Voicemail Message from " . $from, $body, $headers);
            }
        } else {
            $response->say($message);
            if ($transcribe) {
                $params = array("transcribe" => "true", "transcribeCallback" => "{$_SERVER['SCRIPT_URI']}");
            } else {
                $params = array();
            }
            $response->record($params);
        }
    }
}
$response->Respond();