Sending mail with content-type = "text/html" works fine too.
But when the html page contains a picture, the recipient does not see it (because picture's src = \"file:///D:/MyPicture.JPG\").
I tested setContentType("multipart/alternative") without success.
Any suggestion ?
Code: Select all
clauses
onTestCorpsHtml(_Source, _MenuTag):-
string5x::list_to_string(["<html>",
"<head>",
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">",
"<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">",
"<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">",
"<title>Nouvelle page 1</title>",
"</head>",
"<body onContextMenu=\"return false\">",
"<form method=\"POST\" action=\"\" name=\"frm\">",
"<p><img border=\"0\" src=\"file:///D:/...xxx.../MyPicture.JPG\" width=\"668\" height=\"390\"></p>",
"</form>",
"</body>",
"</html>"],"",Message),
M = sendMail_smtp::new("smtp.wanadoo.fr"),
M:setContentType("text/html"),
M:send(["lucg@jdklog.com"],[],"lucg@jdklog.com","Test 2",Message),
stdIO::writef("ok\n"),
!.