https://github.com/dongyuwei/temp_mail
Temporary email service using gen_smtp, Elixir, and SQLite
https://github.com/dongyuwei/temp_mail
email smtp
Last synced: about 2 months ago
JSON representation
Temporary email service using gen_smtp, Elixir, and SQLite
- Host: GitHub
- URL: https://github.com/dongyuwei/temp_mail
- Owner: dongyuwei
- Created: 2024-07-02T12:58:18.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-10-07T15:04:54.000Z (9 months ago)
- Last Synced: 2025-04-05T07:11:16.043Z (3 months ago)
- Topics: email, smtp
- Language: Elixir
- Homepage:
- Size: 82 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TempMail
Temporary email service using gen_smtp, Elixir, and SQLite.## Start App
- Install Erlang/OTP 27 and Elixir(1.16.3)
- mix deps.get
- mix ecto.migrate
- mix run --no-halt## Generate temporary email address and waiting for the receipt of the email.
http://localhost:4000/## Send email to test the App
python3 test/send_email.py the_generated_temporary_email_address## get email
Eg: http://localhost:4000/emails/{the_generated_temporary_email_address}## Set domain and port of the smtp server(see config/config.exs)
```exs
config :temp_mail, TempMail.SMTPServer,
port: 2525,
domain: "localhost"
```## Reference(gen-smtp smtp_server_example)
[smtp_server_example](https://github.com/gen-smtp/gen_smtp/blob/1.2.0/src/smtp_server_example.erl)