Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML related attachment image not work on gmail mail #110

Open
RuchiMakadia opened this issue Aug 21, 2020 · 0 comments
Open

HTML related attachment image not work on gmail mail #110

RuchiMakadia opened this issue Aug 21, 2020 · 0 comments

Comments

@RuchiMakadia
Copy link

Hello I have a face issue when i add html content with related attachment and send it to mail send function Using below CONTENT-ID that work only in iphone mail not in gmail mail. In gmail mail it take as a attachment instead of html src.

// Create a file `Attachment`
let fileAttachment = Attachment(
    filePath: "~/img.png",          
    // "CONTENT-ID" lets you reference this in another attachment
    additionalHeaders: ["CONTENT-ID": "img001"]
)

// Create an HTML `Attachment`
let htmlAttachment = Attachment(
    htmlContent: "<html>Here's an image: <img src=\"cid:img001\"/></html>",
    // To reference `fileAttachment`
    related: [fileAttachment]
)

Thank you
Ruchi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant