Wish Additions to the NET Library

Tron

Member
Licensed User
Longtime User
Hi Erel.
Thank you for youre instant reply. I will check it out.
greets Jens
 

Tron

Member
Licensed User
Longtime User
OK. I checked the multipart options for mails with embedded Bitmaps.
(i guess I was not precisely enough :oops:)
The goal:

053.png


The "constructed" Sample

B4X:
Received: from spooler by localhost (Mercury/32 v4.62); 27 Aug 2014 19:31:06 +0200
X-Envelope-To: <[email protected]>
Return-path: <[email protected]>
Received: from 192.168.216.130 (192.168.216.130) by localhost (Mercury/32 v4.62) with ESMTP ID MG000008;
  27 Aug 2014 19:30:58 +0200
Content-Type: multipart/mixed; boundary="asdasdwdwqd__HV_qwdqwdddwq"
From: [email protected]
To: [email protected]
Subject: B4A SMTP Snippet

--asdasdwdwqd__HV_qwdqwdddwq
Content-Type: text/html; charset="utf-8"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
    <title>Email TEst</title>

    <!-- Contents -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="Content-Language" content="en" />

</head>
<body bgcolor="#e3efff">
        <div align="left">
        <IMG src="cid:953122718@27082014-25A7">
            <h1><strong>Hello Friends.</strong></h1>
            <p><strong><span class="ff2 fc0 fs10 ">This is a HTML Email contents </span><span class="ff1 fc0 fs10 "><br /><br /><br />
                    </strong></p>
            <p><strong><span class="ff2 fc0 fs10 ">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</span><span class="ff1 fc0 fs10 "><br />
                    </strong></p>
        </div>
    </body>
</html>

--asdasdwdwqd__HV_qwdqwdddwq
Content-Type: image/jpeg;
    name="Outlook.jpg"
Content-Transfer-Encoding: base64
Content-ID: <953122718@27082014-25A7>

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcU
FhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgo
KCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAA2AKkDASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK
U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3
uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD6c0YA
afGQACck+/Jps2rWsVxLCRcvJEQr+VayyAE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4
58003xAIdDdpfhtZP9oYxSRxQPH5pnYmQFGhztIiQbm4LbN2wcr0fgbUrq48SpZN4XGmQ2+lPALz
7K8YdI3XyY0ONqptd+NxJKngAAs1JN6BfU9B+0/Sj7T9Kq+U/wDdo8p/7taFlr7T9KPtP0qr5T/3
aPKf+7QBa+0/Sj7T9Kq+U/8Ado8p/wC7QBa+0/Sj7T9Kq+U/92jyn/u0AWvtP0o+0/SqvlP/AHaP
Kf8Au0AWvtP0o+0/SqvlP/do8p/7tAHE/wDCwdU/59bD/vh//iqP+Fg6p/z62H/fD/8AxVFFIkP+
Fg6p/wA+th/3w/8A8VQPiFqgPFrYf98P/wDFUUUAO/4WJq3/AD7WP/fD/wDxVH/CxNW/59rH/vh/
/iqKKAEPxD1Ujm2sf++H/wDiqrX/AI21G+tWgmgswjMrZVWBBVgw/i9QKKKTSkrMW4kXjS9jxizs
CfVkc/8As1Wf+Fg6r/z7WOPTY/8A8VRRSjFR2QB/wsHVP+fWw/74f/4qj/hYOqf8+th/3w//AMVR
RVDD/hYOqf8APrYf98P/APFUf8LB1T/n1sP++H/+KoooAP8AhYOqf8+th/3w/wD8VR/wsHVP+fWw
/wC+H/8AiqKKAD/hYOqf8+th/wB8P/8AFUf8LB1T/n1sP++H/wDiqKKAD/hYOqf8+th/3w//AMVR
/wALB1T/AJ9bD/vh/wD4qiigA/4WDqn/AD62H/fD/wDxVH/CwdU/59bD/vh//iqKKBH/2Q==

The Bitmap with Content-ID: <953122718@27082014-25A7> in the attachment segment
is linked with <IMG src="cid:953122718@27082014-25A7"> to the body segment.
This makes the bitmap appear in the email content and is the difference to an ordinary attachment.
I also recognized, that in mails with attachments, the equal sign dont has to replaced with =3D !

greets Jens
 
Last edited:
Top