Azure SMTP Service Corrupts Images with Embedded Inline Data

K. Kong 126 Reputation points
2024-03-05T14:32:33.9166667+00:00

I am using the Azure SMTP service that is in public review.

It was working fine until when I discovered today that it modified <img> elements with embedded inline data, for example <img src="data:image/png;xxxxxx">.

The last time it was working for me when I used it was on Feb 19. The first time this problem cropped up when I used it was on Mar 3.

I did not change my application code at all during all this time. If I now just switch provider, to smtp.gmail.com for example, the exact same mail shows the image correctly.

It appears that Azure converts the tag to <img src="cid:cid0">.

I know this service is experimental, but how do I get this to the attention of Microsoft?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
687 questions
{count} votes

Accepted answer
  1. ajkuma 22,436 Reputation points Microsoft Employee
    2024-03-06T12:48:20.75+00:00

    Edit:

    As K. Kong figured out, potential cause: "So there seems to be something wrong with Gmail's web renderer that happened recently."

    --

    Following-up on this, we were not able to repro the same behavior (either with SDK or SMTP), I have reached out to you privately for additional info.
    Just to confirm, did you also try to send by using PowerShell?


    Please click Accept Answer to benefit the community find answers quickly to similar question.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. K. Kong 126 Reputation points
    2024-03-06T13:47:59.9533333+00:00

    OK, I think I found the problem. It is with Google!

    Mails sent to Exchange users - ok.

    Mails sent to Gmail, retrieved in gmail.com - not ok

    Mails sent to Gmail, retrieved from Outlook via IMAP - ok

    Mails sent to Gmail, forwarded to Exchange user - not ok

    So there seems to be something wrong with Gmail's web renderer that happened recently.

    Sorry for the wild goose chase.