Robert Viehouser
|
Posted: 06/27/2002, 6:50 PM |
|
I am working on a email form with in codecharge. works great but I need to
send attachment file also. So if anyone know how please send me so sample
code
Thanks
<?php
file://BindEvents Method @1-3C636BFA
function BindEvents()
{
global $CCSEvents;
$CCSEvents["BeforeUnload"] = "Page_BeforeUnload";
}
file://End BindEvents Method
function Page_BeforeUnload() { file://Page_BeforeUnload @1-BE116681
file://Send Email @4-AAD23372
global $To Email;
global $From Email;
global $Subject;
global $Body of message;
$to = $To Email->GetText();
$subject = $Subject->GetText();
$message = $Body of message->GetText();
$from = $From Email->GetText();
$additional_headers = "From: $from\nReply-To: $from";
mail ($to, $subject, $message, $additional_headers);
file://End Send Email
} file://Close Page_BeforeUnload @1-FCB6E20C
?>
|
|
|
|