DougReeder

DougReeder

Force Bamboo.email to create email not using "multipart/alternative" mime-type

By default, Bamboo.Email, when you only add a text_body/2, appears to create emails with the following structure:

Content-Type: multipart/mixed; boundary="----=_Part_301556352_2177739793.3928492858"

------=_Part_301556352_2177739793.3928492858
Content-Type: multipart/alternative; boundary="----=_Part_578078571_1285899129.711799163"

------=_Part_578078571_1285899129.711799163
Content-Type: text/plain;charset=UTF-8

Text body here
------=_Part_578078571_1285899129.711799163--
------=_Part_301556352_2177739793.3928492858--

While this is a good general-purpose structure that allows text and HTML bodies along with attachments, and is perfectly valid, the presence of a text/plain section without a text/html section triggers some spam filters.

Is there a way to tell Bamboo.Email to create an email that doesn’t use multipart/alternative ?

Where Next?

Popular in Questions Top

Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement