hendri-tobing
I am working on an umbrella application that contains a separate Phoenix and Ecto application (my_web and my_app).
Then I Install the Bamboo email library for sending emails on the Phoenix App my_web. Bamboo can view the sent emails by using the Phoenix controller. I follow the configuration as described in the documentation.
# in config file (config/config.exs)
config: my_web, MyWeb.Mailer,
adapter: Bamboo.LocalAdapter
# In Router
defmodule MyWeb.Router do
if Mix.env ==: dev do
# If using Phoenix
forward "/ sent_emails", Bamboo.SentEmailViewerPlug
end
end
However, there is an error message:
MyWeb.Bamboo.SentEmailViewerPlug.init / 1 function is undefined
It is wrong because the correct one is Bamboo.SentEmailViewerPlug module, not MyWeb.Bamboo.SentEmailViewerPlug.
Any ideas to resolve this are appreciated.
Thank you.
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 9- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
wolfiton
Take a look here if you haven’t Bamboo.LocalAdapter — bamboo v2.5.0
This part
Example config
hendri-tobing
Thank you for the response. I have read and follow the documentation before, and do as you suggested, but the error is still there.
wolfiton
OK, start the server with:
mix phx.serverThen navigate in the browser to
http://localhost:4000/sent_emailsThen copy the full error and post if on the forum.
This might make it easier to understand what is going on.
hendri-tobing
This is the error
NobbZ
Can you please show us your full
router.ex?It might be that you have omitted something important…
wolfiton
Do you really have a space here? If so delete the space and write
forward "/sent_emails", Bamboo.SentEmailViewerPlugDoes it work now?
hendri-tobing
There is no space on the forward route. Here is the full
router.exjg-made
Just take it out of the
scope. Move those 3 lines in your router.ex:down one line (after the scope’s
end) and I think it should be fine.source: Bamboo.SentEmailViewerPlug — bamboo v2.5.0
hendri-tobing
Thank you. This is the solution.
Thank you also for all the responses.