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

configure MTA for BaseEmail #10

Closed
bararchy opened this issue Apr 12, 2018 · 5 comments
Closed

configure MTA for BaseEmail #10

bararchy opened this issue Apr 12, 2018 · 5 comments

Comments

@bararchy
Copy link

how do I do this^ :)

@paulcsmith
Copy link
Member

Hey @bararchy! Can you describe what you mean by MTA? I've not heard of that before

@bararchy
Copy link
Author

@paulcsmith Sorry for later response, MTA stands for mail transfer agent and usually is refereed when talking of the next step an SMTP based client should go to to send emails.

What I was asking is how I tell carbon to send emails via x.x.x.x:25 etc.. and not using other service\site

@paulcsmith
Copy link
Member

@bararchy No problem :) You'd have to build an SMTP adapter. Carbon is extendable so you can write one separately. You can see an example here: https://github.com/luckyframework/carbon/blob/master/src/carbon/adapters/send_grid_adapter.cr

It basically takes an email and then you can send it however you'd like :)

Does that answer your question?

@bararchy
Copy link
Author

@paulcsmith I see, makes sense then, i was kinda surprised to find no SMTP support builtin because it's kinda the basis of email technology.

anyway, I'll see if I can make it my weekend project :)

@paulcsmith
Copy link
Member

@bararchy Yeah that makes sense. It's so much easier to work with SendGrid and most people prefer it (I think) but it would be awesome to have an SMTP adapter as well! If you get it working feel free to open an issue here and I'll add it to the README so people can use it. LMK if you need any help with the adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants