Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
$fromaddress="";
//if ((isset($_POST['sendmail'])) && (!empty($_POST['mailto'])) && (!empty($_POST['message'])) && (isset($_POST['bildid'])))
// {
$bilder=mysql_query("select * from bilder where id='".$_POST['bildid']."'");
$bild=mysql_fetch_assoc($bilder);
$message=imap_8bit($_POST['message']);
$message.="\n\n";
$message.="\t".imap_8bit("<<".$bild['dateiname'].">>");
$boundary="----".md5(uniqid());
$email="";
$email.="Content-class: urn:content-classes:message";
$email.="\nUser-Agent: Bildmailer";
$email.="\nMIME-Version: 1.0";
$email.="\nContent-Type: multipart/mixed;\n\tboundary=\"".$boundary."\"";
$email.="\nFrom: ".$fromaddress;
$email.="\nX-Priority: 3 (Normal)";
$email.="\nImportance: Normal";
$email.="\n\n--".$boundary;
$email.="\nContent-Type: text/plain;\n\tcharset=\"iso-8859-1\"";
$email.="\nContent-Transfer-Encoding: quotet-printable";
$email.="\n\n".$message;
$email.="\n\n--".$boundary;
$file=fopen("bilder/".$bild['dateiname'],"r");
$content=fread($file,filesize("bilder/".$bild['dateiname']));
fclose($file);
$encodedfile=chunk_split(base64_encode($content));
$email.="\nContent-Type: application/octet-stream;\n\tname=\"".$bild['dateiname']."\"";
$email.="\nContent-Transfer-Encoding: base64";
$email.="\nContent-Description: ".$bild['dateiname'];
$email.="\nContent-Disposition: attachment;\n\tfilename=\"".$bild['dateiname']."\"";
$email.="\n\n".$encodedfile."\n\n--".$boundary;
$email.="--";
imap_mail($_POST['mailto'],"Bild","",$email);
echo "Mail wurde verschickt";
// }
?>
Warning: mysql_query() [function.mysql-query]: Access denied for user: 'svenjakienapfel@localhost' (Using password: NO) in /www/htdocs/szene_news/sendpic.php on line 5
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established /www/htdocs/szene_news/sendpic.php on line 5
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /www/htdocs/szene_news/sendpic.php on line 6
Mail wurde verschickt
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result www/htdocs/szene_news/sendpic.php on line 11
Mail wurde verschickt
$message=imap_8bit($_POST['message']);
$email.="\nContent-Type: application/octet-stream;\n\tname=\"".$bild['dateiname']."\"";
$email.="\nContent-Transfer-Encoding: base64";
$email.="\nContent-Description: ".$bild['dateiname'];
$email.="\nContent-Disposition: attachment;\n\tfilename=\"".$bild['dateiname']."\"";