Skip to content

HTML and Inline Image duplicates body of email #160

@andrewrensburg

Description

@andrewrensburg

Hi,

When the mailmerge_template.txt looks like this:

TO: {{email}}
SUBJECT: {{broker}}
FROM: FooBar <[email protected]>
Content-Type: text/html
ATTACHMENT: {{attachment}}
ATTACHMENT: C:\Users\foobar\assets\latest_email_png.png

<html>
<body>

<p>Dear {{broker}},</p>

<p>Please find attached stuff.</p>

<p>Kind regards</p>
<p>The Stuff Team</p>
<img alt="second" src="C:\Users\foobar\assets\latest_email_png.png">

</body>
</html>

The body of the email is duplicated in the receiving mail.
Interestingly, the sent mail within Outlook doesn't look duplicated, but it is received duplicated:

Had to blackspace most of the image for confidentiality.

image

When removing the inline img tag, the bug no longer occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions