Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
$header = "MIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=\"========1234567890\"";
$file_type="image/jpeg"; //oder entsprechender MIME-Typ der Datei
$file_name="datei.jpg";
$content="Hier der Email-Text";
$fd = fopen("is/htdocs/...../datei.jpg", "r");
$anhang = chunk_split(base64_encode(fread( $fd, filesize("is/htdocs/...../datei.jpg"))));
fclose($fd);
$content = "--========1234567890
Content-Type: text/plain; charset=\"us-ascii\"
Content-Transfer-Encoding: 7bit
".$content."
--========1234567890
Content-Type: $file_type; name=$file_name
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=\"$file_name\"
".$anhang;
mail($recipient,$subject,$content,"From: $sender <$frommail>\n".$header);
$fcontent = implode("",file("is/htdocs/...../datei.jpg"));
$anhang = chunk_split(base64_encode($fcontent));
// oder auch ohne die temp-var
$anhang = chunk_split(base64_encode(implode("",file("is/htdocs/...../datei.jpg"))));