Archived Forum Post

Index of archived forum posts


Sending email with related attachments

Apr 03 '14 at 09:57


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" "">
<html xmlns="">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
        <style type="text/css">
            .cs95E872D0{text-align:left;text-indent:0pt;margin:0pt 0pt 0pt 0pt}
        <p class="cs95E872D0"><span><img src="00d1bad0-ab0a-428b-b7bf-fb595d44904c.image" alt="" style="border-width:0px;" /></span></p></body>

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?