I read the link you posted but It didnt help, or at least I didnt understand how to implement it...
This is the code that Im using to send an Invoice and I need it to send a file (picture, .zip, .doc, etc etc)
How can I insert a code that can manage a file to be send as an attachment?
Im real lost here...
<html><body>
<?
$MailTo = "$email";
$MailSubject = "Invoice - Cheque";
$MailHeader = "From: [email]radi@chispito.com[/email]\r\nContent-Type: text/html\r\n";
$MailTo2 = "alex@chispito.com";
$Envoi = 1;
//email
if ($email== ""){
echo("<font face=verdana size=2>Olvido escribie el email</font><br>");
$Envoi = 0;
}
else
{
}
if ($Envoi == "0")
echo("
<FORM>
<INPUT Type=Button Value=Back
OnClick=history.back();>
<font face=verdana size=2><br><br>**</font></br></br>");
else
{
}
$MailBody = "
HERE GOES THE MAIL BODDY!
BUT IS TOO LONG, the FORUM WONT ACCEPT IT, Just Asume its here...
";
if ($Envoi == 1) {
mail($MailTo, $MailSubject, $MailBody, $MailHeader, $MailTo2);
echo("
Su factura a sido enviada a la direccion de email.
");
}
?>
</body></html>