Ok, heres my script:
if(isset($submit))
{
$ServiceZip = trim($ServiceZip);
$zip_count = strlen($ServiceZip);
$zip_check = substr($ServiceZip, -5, 1);
if($zip_check > '5' && $zip_check != '-' || ($zip_count < '5')):
{
print('Sorry, we need a 5 digit zip code.');
}
else:
{
$varwritefile = "$AgentCompany|$AgentName|$PartnerContact|$AgentNumber|$AgentEmail|$ServiceBusName|$ServiceStreet|$ServiceCity|$ServiceState|$ServiceZip|$ServiceCompPhone|$ServiceDSLNumber|$ServiceLocalPhone|$ServiceCompLAN|$ServiceStaticNum|$ServiceBusType|$ServiceOtherType|$ServiceWebMail";
$busfile = "prequal/$ServiceBusName.txt";
$fileopen = fopen ($busfile, "w+");
fwrite ($fileopen, "$varwritefile");
fclose($fileopen);
mail("thoobert@comcast.net,tazelby@bwsdsl.com",$msgsub,"$Message", $header);
print("Thanks");
}
endif;
}
else
{
?>
now, in the mail function, what do i have to put in order to attach an email?? I've seen things with headers however, they are rather confusing. I've seen the article that everyone points to (not sure the address) but it doesn't help me and confuses me because i have no idea what each part means. Anyway, what I want to do is create a script that can attach a file (or more than one) to the message being sent with the mail function. The way I want to do this is by using check boxes. Any help is appreciated.
Eric T>