BLacika

BLacika

Sending email simple

Hi!

Do Elixir have built-in lib for sending email via SMTP? I know there is Bamboo or Swoosh, but i search for a simpler way. I don’t wanna make an application for this and config, just call a send_email and do the job for me.

Thank you!

First Post!

hubertlepicki

hubertlepicki

both of these libraries have SMTP adapters, and both are pretty easy to use, probably easier than using SMTP-only libraries.

Most Liked

LostKobrakai

LostKobrakai

No, SMTP is not a built in. gen_smtp is more low level and in turn is used by bamboo or swoosh. However I wouldn’t call that “simpler”.

You can use Mix.install to pull in dependencies for scripts. My experience with functions, which aim to “just send mail” is that they’re mostly treated as sources for spam and you get a 50:50 chance of the receiver actually receiving the email at best. Also at least the one I’m familiar with (PHP) afaik uses sendmail on linux, where you got your dependency again, just on the language runtime level instead of the application level.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
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
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement