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

 

$html .= "

Herzlich willkommen in unserem VET Repository, {$firstname} {$lastname},

bitte bestätigen Sie Ihre E-Mail-Adresse, indem Sie diesen Link anklicken.

Sollte der Link nicht funktionieren, kopieren Sie den Link {$verification_link} in die Adresszeile Ihres Browsers.

(Falls Sie sich nicht im VET Repository registriert haben sollten, können Sie diese E-Mail ignorieren).

Nach erfolgreicher Bestätigung der Freischaltung können Sie sich mit Ihrer E-Mail-Adresse und Ihrem Passwort über den Button \"Login\" anmelden und mit der Veröffentlichung Ihrer Publikation in unserem VET Repository beginnen.

Alle wichtigen Informationen rund um das VET Repository finden Sie auf der Informationsseite Publizieren im VET Repository.

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

Hallo ,
wir haben an "" eine E-Mail mit dem Betreff "Registrierung im VET Repository: Bitte bestätigen Sie Ihre E-Mail-Adresse" gesendet. Bitte klicken Sie auf den Link in dieser E-Mail, damit wir Ihr Publikationskonto anlegen 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.