"; //falls doch noch einmal LOGO benötigt wird // VET Repository Logo //

 

$html .= "

Hallo {$firstname} {$lastname},

wir haben alles vorbereitet, damit Sie Ihr Passwort für Ihr Publikationskonto zurücksetzen können, indem Sie auf diesen Link klicken.

Sollte der oben aufgeführte Link nicht funktionieren, kopieren Sie den Link {$resetpassword_link} in die Adresszeile Ihres Browsers.

Sie werden auf eine Seite weitergeleitet, auf der Sie Ihr Passwort neu vergeben können.

Bei weiteren Fragen stehen wir Ihnen gerne unter der Mailadresse repository@bibb.de zur Verfügung.

Ihr Team des VET Repository

--
Bundesinstitut für Berufsbildung
Stabsstelle \"Publikationen und wissenschaftliche Informationsdienste\"
Federal Institute for Vocational Education and Training (BIBB)
Strategic office \"Publications and Scientific Information Services\"
Friedrich-Ebert-Allee 114 - 116
D-53113 Bonn

repository@bibb.de
www.bibb.de
www.bibb.de/repository
www.vet-repository.info
"; // now let`s generate the mail including all links, images, etc. $final_msg = preparehtmlmail($html); // give a function your html* $message = $final_msg['multipart']; $headers = $final_msg['headers']; // send the mail using sendmail as underlying service mail($email, $subject, $message, $headers); // prepare email with all images from html attached (will be presented embedded depending on the Mailclient used function preparehtmlmail($html) { preg_match_all('~~si',$html,$matches); $i = 0; $paths = array(); foreach ($matches[1] as $img) { $img_old = $img; if(strpos($img, "http://") === false || strpos($img, "https://")) { $uri = parse_url($img); $paths[$i]['path'] = $_SERVER['DOCUMENT_ROOT'].$uri['path']; $content_id = md5($img); $html = str_replace($img_old,'cid:'.$content_id,$html); // print_r($html); $paths[$i++]['cid'] = $content_id; } } $boundary = "--".md5(uniqid(time())); $headers = "MIME-Version: 1.0\n"; $headers .="Content-Type: multipart/mixed; boundary=\"$boundary\"\n"; $headers .= "From: ".DEFCALLBACKMAIL."\r\n"; $multipart = ''; $multipart .= "--$boundary\n"; $kod = 'utf-8'; $multipart .= "Content-Type: text/html; charset=$kod\n"; $multipart .= "Content-Transfer-Encoding: Quot-Printed\n\n"; $multipart .= $html ."\n\n"; foreach ($paths as $path) { if(file_exists($path['path'])) $fp = fopen($path['path'],"r"); if (!$fp) { return false; } $imagetype = substr(strrchr($path['path'], '.' ),1); $file = fread($fp, filesize($path['path'])); fclose($fp); $message_part = ""; switch (strtolower($imagetype)) { case 'png': $message_part .= "Content-Type: image/png"; break; case 'jpg': case 'jpeg': $message_part .= "Content-Type: image/jpeg"; break; case 'gif': $message_part .= "Content-Type: image/gif"; break; } $p = $path['path']; $message_part .= "; file_name = \"$p\"\n"; $message_part .= 'Content-ID: <'.$path['cid'].">\n"; $message_part .= "Content-Transfer-Encoding: base64\n"; $message_part .= "Content-Disposition: inline; filename = \"".basename($path['path'])."\"\n\n"; $message_part .= chunk_split(base64_encode($file))."\n"; $multipart .= "--$boundary\n".$message_part."\n"; } $multipart .= "--$boundary--\n"; return array('multipart' => $multipart, 'headers' => $headers); } ?> Login

E-Mail-Bestätigung Passwort zurücksetzen

Hallo ,
wir haben an die E-Mail-Adresse eine E-Mail mit dem Betreff "Passwort zurücksetzen im Publikationskonto des VET Repository" gesendet.
Bitte klicken Sie auf den Link in dieser E-Mail, damit wir Ihr Passwort zurücksetzen können.
Sollten Sie diese E-Mail nicht innerhalb kurzer Zeit erhalten, prüfen Sie bitte Ihren Spamordner. Ist die E-Mail auch dort nicht angekommen, melden Sie sich bitte über unser Kontaktformular.