$tempFile = $dir . '/NeilCrosby.vcf';
    file_put_contents($tempFile, $contents);
    // send the email
    require 'geekMail-1.0.php';
    $geekMail = new geekMail();
    $geekMail->setMailType('text');
    $geekMail->from('*****@*****.**', 'Neil Crosby');
    $geekMail->to($email);
    $geekMail->subject("Neil Crosby's vCard");
    $geekMail->message("Thanks for downloading my vCard.\n\nIf you're using an iPhone, scroll down to the bottom of the attached card to add it to your address book.\n\nDon't forget you can always get an up to date copy from http://neilcrosby.com/vcard");
    $geekMail->attach($tempFile);
    if ($geekMail->send()) {
        unlink($tempFile);
        header("Location: http://neilcrosby.com/vcard/via-email/sent/");
    } else {
        $errors = $geekMail->getDebugger();
        print_r($errors);
    }
    unlink($tempFile);
    exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
    <head>
        <title>Get Neil Crosby's vCard via Email</title>
        <meta name="viewport" content="width=320" />
    </head>
    <body>
        <form method="get" action="">