Transactional email for my own website

What do I need to use a mailinabox server , in order to have my php backend to automatically send an email to a new signed up user.

I mean after I setup mailinabox successfully.
I want to send automatically with my own created backend an email. I have my backend already working with mail gun. However I do wish to use my own mailinabox server.

I understand some people recommend sendgrid, but if I can code this myself, why would I use mailgun, or sendgrid? Isn’t that’s what mailinabox is for?

I want to know how can I configure the smtp settings into my laravel backend?
Is it technically possible?
Any suggestions or comments?

Absolutely.

I do not know Laravel, but you can add the SMTP server details … somehow. Check Laravel docs.

ETA* - What you need is in the Swiftmailer library. Hopefully that gives you a clue where to look.

Read https://mailinabox.email/advanced-configuration.html#relaying

Overkill … as Laravel will connect to a smtp server directly.

You should be able to replace the Mailgun login information with your MiaB information.

Typically, the advantage of using Mailgun, Sendgrid, etc., is they include list management features, so users are added to managed through lists on their servers, they automatically include opt-out links, marketing links, etc., as the services are intended for managing large lists and other related services.

MiaB is intended for personal or very small SOHO applications. It can be used for transactional email, but that isn’t the intended user base so it does not have the same mailing list features.