Otpravka fajla po pochte.
1.
Андрей (25.10.2009 / 21:10)
Est' fajl- $file
Adres e-mail- $mail
Tekst- $text
Tema- $theme
Kak otpravit' jeto? Ni kak ne vyhodit otpravit' s fajlom.
2.
Удаленный (25.10.2009 / 22:04)
$filename = "logo.gif";
$fh = fopen($filename, "rb");
$filecontent = fread($fh, filesize($filename));
fclose($fh);
$mess = chunk_split(base64_encode($filecontent));
$to = "
[email protected]";
$subj = "отправка изображения в качестве вложения";
$headers = "Content-disposition: attachment; filename=logo.gif\n";
$headers. = "Content-type: image/gif\n";
$headers. = "Content-Transfer-Encoding: base64\n";
mail($to, $subj, $mess, $headers);
URL:
https://visavi.net/topics/2097