Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I add an image programmatically to an email?
Message
 
À
10/02/2006 15:02:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01095261
Message ID:
01096224
Vues:
19
>embedded
>
>>As an attachment to the email or embedded in the body of the message?
>>
>>
>>>Title says it all. At least I think <g>
>>>
>>>Right now I'm sending emails programmatically. only with text. I'd like to be able to send e-mails with a mixture of text and graphics.
>>>
>>>How do I do that?

With a content-id...
Subject: test
Content-Type: multipart/related;
 boundary="------------030907020403040702050906"

This is a multi-part message in MIME format.
--------------030907020403040702050906
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This is a test<br>
<img alt="" src="cid:part1.00020907.03030405@rmtohio.com" height="175"
 width="185">test<br>
</body>
</html>

--------------030907020403040702050906
Content-Type: image/gif;
 name="bobcat.gif"
Content-Transfer-Encoding: base64
Content-ID: <part1.00020907.03030405@rmtohio.com>
Content-Disposition: inline;
 filename="bobcat.gif"

R0lGODlhuQCvAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8KqqqpmZmYiIiHd3
d2ZmZlVVVURERDMzMyIiIhEREf//zP//mf//Zv//M//M///MzP/Mmf/MZv/MM//MAP+Z//+Z
<encoded lines removed to save space>
--------------030907020403040702050906
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform