hallo liebe leute,
ich muss eine html-email mit integriertem bild senden.
das klappt auch wunderbar, aber das bild wird sowohl in der email, als auch als anhang (büroklammer) angezeigt.
gewollt ist aber NUR in der mail - nicht als anhang!
kann mir jemand helfen?
viele grüße,
bruno
-----codeauszug---schnipp---schnapp------
$mimeprog = '/usr/bin/mimencode';
$mailprog = '/usr/sbin/sendmail';
$attachedFile = 'mops.gif';
$attachedName = 'mops.gif';
$boundary = "----=_NextPart";
$recipient = 'adresse@weissdergeierwo.de';
@attachedFile = $mimeprog $attachedFile $attachedName
;
open (MAIL, "|$mailprog -t");
print MAIL "From: absender@irgendwas.de\n";
print MAIL "To: $recipient\n";
print MAIL "Subject: kuckuck\n";
print MAIL "Content-Type: multipart/mixed;\n";
print MAIL " boundary="$boundary"\n\n";
print MAIL "--$boundary\n";
print MAIL "Content-Type: text/html; charset="iso-8859-1"\n";
print MAIL "Content-Transfer-Encoding: 7bit\n\n";
print MAIL "<b>Hier der eigentliche Inhalt...</b>\n";
print MAIL "--$boundary\n";
print MAIL "Content-Type: image/gif\n";
print MAIL " name="$attachedName"\n";
print MAIL "Content-Transfer-Encoding: base64\n";
print MAIL "Content-Disposition: inline; filename="$attachedName"\n\n";
print MAIL @attachedFile;
print MAIL "\n\n";
close MAIL;