--- careers.php 2001/03/05 15:36:16 1.6 +++ careers.php 2001/03/06 09:02:05 1.7 @@ -33,6 +33,34 @@ $positions[]=$row; } $smarty->assign("positions",$positions); + } elseif ($part == "Mail") { + +$mail=" +First name: $first_name +Last name: $last_name +Address: $address1 + $address2 +City: $city +State: $state +ZIP: $zip +Country: $country +e-mail: $email +tel: $tel +Purpose: $purpose +Interest: $intereset + $other_what +Comments: +$comments + +Resume: $resume_name ($resume_size bytes) +"; + $smarty->assign("mail","You sent following e-mail:
$mail
"); + include("class.CMailFile"); + $sendto="careercenter@pliva.hr"; + $replyto="$first_name $last_name <$email>"; + $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); + $mailfile->sendfile(); + @unlink($resume); } $main=$smarty->fetch("Careers-".$part.".tpl"); @@ -51,3 +79,4 @@ $smarty->display("index.tpl"); ?> +