howto generate html email with reference to a png-picture (inline)

T

thomas.frei

Dear all,
I want to send eMail with Text and a pricture inside in HTML code:
The original HTML would be something like:

<img alt=3D"BARCODE eKANBAN" src=3D"barcode.png" height=3D"144"
width=3D"215">

my email client generates somthing like: - how can I generate this via
perl?

From - Tue Oct 02 18:47:32 2007
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <[email protected]>
Disposition-Notification-To: Thomas Frei <[email protected]>
Date: Tue, 02 Oct 2007 18:47:30 +0200
From: Thomas Frei <[email protected]>
User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070622)
MIME-Version: 1.0
To: Thomas Frei <[email protected]>
Subject: subject
X-Enigmail-Version: 0.95.0
OpenPGP: id=12BCBE82
Content-Type: multipart/mixed;
boundary="------------000006060005090806050206"

This is a multi-part message in MIME format.
--------------000006060005090806050206
Content-Type: multipart/related;
boundary="------------010507070402000202020602"


--------------010507070402000202020602
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
text<br>
<img alt="barcode" src="cid:p[email protected]"
height="144"
width="215"><br>
text<br>
</body>
</html>

--------------010507070402000202020602
Content-Type: image/png;
name="bc.png"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>
Content-Disposition: inline;
filename="bc.png"

iVBORw0KGgoAAAANSUhEUgAAANcAAACQCAIAAAAUQmk2AAACnElEQVR42u3a23KbMABFUdPJ
//+y+uAMQ6EWBySCwqz15GYUmcuuDMRTKeUFt/
rjEKBCUCEqBBWiQlAhKgQVokJQISoEFTKU
r3zoNE3vL+CsXiz/OQ9eflXn08+vnqoy8tPkn3Zw9023M6x+ZfWTZE8rOxgenO1RrR
+KfKvy
qayF
+EQGFaJCUCEqBBWiQlAhKgQVokJQISoEFaJCUCEqBBWiQlAhKgQVokJQISoEFaJCUCEq
BBWiQlAhKgQVokJQISoEFaJCUCEqBBWiQlAhKgQVokJQISoEFaJCUCEqBBWiQlAhKgQVokJQ
ISoEFaJCUCEqBBWiQlAhKgQVokJQISoEFaJCUCEqBBWiQlAhKgQVokJQISoEFaJCUCEqBBWi
QlAhqBAVggpRIagQFYIKGcVUSkmHTt+D5xewzGN+XUo5FIm1EJ/
I8Hp9dVyK6ytwMuyKqRqH
hfMcnarxOORTra6m2qcascLl7tV3dXfYdVOdHvY+Qye26tPI5Bzv7uB2q+oXYavOzm3VuJ/
I
29377w4nwzpOde4QJ8PeF93npkp+Md/B5VvU+6u/
b7hVo18XhocjGdZrqu3C0DLs6OrVvrqE
xyGc6u3514UP1vf8LZfSXpm2r2e9tuqHKpw38Vc8LOx4oxOe7+SWIrnE7L6PXa7sj/
7fODTP
M9fCjjc6vQrbnqT2EOc/Ipye6oqtuuG6cPxP0sotRTgsWXLCqca/
bPiVdyePNz8WGedkD3Jj
O1CFyyNSOTrJsIumajmdqydz7VN1PKRPCrqpwt2rn3zYdVOFD5BbnjOHU63yOr2D4VTnor9l
yf+5O7W7/oLXMtXuE+OjdzBh3B2nSm7Rbr/
E9B0t3J2AClEhqBAVggpRIagQFYIKUSGoEBXC
v/4C1w8sDtxnf1QAAAAASUVORK5CYII=
--------------010507070402000202020602--

--------------000006060005090806050206
Content-Type: text/x-vcard; charset=utf-8;
name="thomas.frei.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="thomas.frei.vcf"

begin:vcard
fn:Thomas Frei
n:Frei;Thomas
adr:;;Schildkamp3 ;Minden;;32429;Deutschland
email;internet:[email protected]
tel;work:+49 571 7951 319
tel;home:+49 571 5800771
tel;cell:+49 175 588 1426
x-mozilla-html:TRUE
version:2.1
end:vcard


--------------000006060005090806050206--
 
D

Darren Dunham

Dear all,
I want to send eMail with Text and a pricture inside in HTML code:
The original HTML would be something like:

<img alt=3D"BARCODE eKANBAN" src=3D"barcode.png" height=3D"144"
width=3D"215">

my email client generates somthing like: - how can I generate this via
perl?

You might look at the Email::MIME::CreateHTML module. It has a number
of dependencies, but it seems to work pretty well for me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top