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

Content ID specified with attachment is not sent with message #577

Open
dabaer opened this issue Jan 5, 2021 · 1 comment
Open

Content ID specified with attachment is not sent with message #577

dabaer opened this issue Jan 5, 2021 · 1 comment
Labels
waiting-for-info Request for more information sent, awaiting reply

Comments

@dabaer
Copy link

dabaer commented Jan 5, 2021

Hello,

I'm attempting to get CID working with emails sent using the SMTP adapter, however when I attach a logo for example

put_attachment(%Bamboo.Attachment{filename: "logo.png", data: logo, content_type: "image/png", content_id: "headlogo"})

the content ID i specified does not get sent with the message:

Content-Type: image/png; name="logo.png"
Content-Disposition: attachment; filename="logo.png"
Content-Transfer-Encoding: base64
X-Attachment-Id: 3318558395

From the documentation i've read with both Bamboo and Bamboo SMTP this would seem like the correct way for me to specify a CID, however it does appear on the email client side.

What is the correct way to achieve this?

@germsvel
Copy link
Collaborator

germsvel commented Feb 15, 2021

Hi @dabaer, thanks for opening this issue. I believe the setting of the content ID would be something that the adapter needs to handle. When you say the SMTP adapter, I'm guessing you mean https://github.com/fewlinesco/bamboo_smtp, right?

If that's the case, I think you might have to open an issue in that repo. At a quick glance, it seems like that there is a case when that adapter sets the content-id. But I don't know if that's sufficient for your case. See this line, which was added in this commit.

@germsvel germsvel added the waiting-for-info Request for more information sent, awaiting reply label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Request for more information sent, awaiting reply
Projects
None yet
Development

No branches or pull requests

2 participants