News for hackers. Stuff that matters.
Re:Goravel: A Go framework inspired by Laravel by tgv on Sunday March 09, 2025 @03:17PM (#43312635)
> email sending

It's as simple as calling smtp.SendMail("hostname:smtp", nil, from, to, message)

Re:Goravel: A Go framework inspired by Laravel by 9dev on Sunday March 09, 2025 @05:16PM (#43313933)
It’s not. One thing is sending batches of transactional mail to thousands of recipients in a production web application running on a bunch of replicated containers on ephemeral machines, the other is proof that SMTP theoretically works in your programming language.
Re:Goravel: A Go framework inspired by Laravel by desumeku on Monday March 10, 2025 @10:27AM (#43321048)
It does not take more than 10 lines of code to launch a goroutine (or two, or more, due to how easy worker pools are in Go) that receives email requests and sends them in batches.
Re:Goravel: A Go framework inspired by Laravel by 9dev on Monday March 10, 2025 @05:00PM (#43326031)
And some more to add retries. And then another few to handle attachments. And just some more to generate previews. And multipart messages. And testing. And just like that, you spent a whole lot of time to reinvent something frameworks like Laravel include out of the box, right now. And did I mention it is documented and any other developer familiar with the framework can immediately use, without having to waste time reading library code?
Re:Goravel: A Go framework inspired by Laravel by desumeku on Monday March 10, 2025 @05:48PM (#43326475)
"A little copying is better than a little dependency."