\n"; $headers .= "Reply-To: \"$firstname $lastname\" <$emailaddress>\n"; // 1 - 5, with 1 being high priority and 5 being lowest priority. 3 is medium and most email clients don't show a "flag" for 3. // Specifies "Urgent Message!" to those that support it $headers .= "X-Priority: 3\n"; // Return Path for Errors $headers .= "Return-Path: <$emailaddress>\n"; $headers .= "MIME-version: 1.0\n"; $headers .= "Content-type: multipart/mixed; "; $headers .= "boundary=\"Message-Boundary\"\n"; $headers .= "Content-transfer-encoding: 7BIT\n"; $headers .= "X-attachments: Tenant_".$unique.".vcf"; $message = " First Name: $firstname Last Name: $lastname Email: $emailaddress Title: $title Company: $company ----------------- Business Address: $workaddress1 $workaddress2 City: $workcity State: $workstate Zip: $workzip Phone: $workphone Fax: $workfax Cell: $workcell ----------------- ----------------- Home Address: $homeaddress1 $homeaddress2 City: $homecity State: $homestate Zip: $homezip Phone: $homephone ----------------- Note: $note "; $body_top = "--Message-Boundary\n"; $body_top .= "Content-type: text/plain; charset=US-ASCII\n"; $body_top .= "Content-transfer-encoding: 7BIT\n"; $body_top .= "Content-description: Mail message body\n\n"; $message = $body_top . $message; $message .= "\n\n--Message-Boundary\n"; $message .= "Content-type: application/msexcel; name=\"Tenant_".$unique.".vcf\"\n"; $message .= "Content-Transfer-Encoding: BASE64\n"; $message .= "Content-disposition: attachment; filename=\"Tenant_".$unique.".vcf\"\n\n"; $message .= "$encoded_attach\n"; $message .= "--Message-Boundary--\n"; // JUDI: EDIT THIS (or delete my line) $to = "someone@someserver.com"; mail($to, $subject, $message, $headers); echo "w00t!

Message Sent to $to

"; } else { ?>
First Name:
Last Name:
Email:
Title:
Company:
Business
Address:
 
City:
State:
Zip:
Phone:
Fax:
cell:
Home
Address:
 
City:
State:
Zip:
Phone:
note: