Archived Forum Post

Index of archived forum posts

Question:

Sending email with related attachments

Apr 03 '14 at 09:57

Hello!

I want to send an email with Html body and images in it using MailMan. Html body like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
        </title>
        <style type="text/css">
            .cs95E872D0{text-align:left;text-indent:0pt;margin:0pt 0pt 0pt 0pt}
        </style>
    </head>
    <body>
        <p class="cs95E872D0"><span><img src="00d1bad0-ab0a-428b-b7bf-fb595d44904c.image" alt="" style="border-width:0px;" /></span></p></body>
</html>

Image source "00d1bad0-ab0a-428b-b7bf-fb595d44904c.image" is a file on disk. This file is a Jpeg image.

Any ideas how to send this email whith image? Edit body after using MailMan.AddRelatedFile() is not a good idea. And if I called MailMan.AddRelatedFile() with this name "00d1bad0-ab0a-428b-b7bf-fb595d44904c.image", content type of added related item is "plain/text". Can I change it?