Level 63
Does this help you ?
https://laravel.com/docs/11.x/mail#sending-mail
Or do you really need to use the PHP native mail() function ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
What's configuration I need to setup.. I've read someone's post where they have mentioned the mail function doesn't work locally 😔.
What i need to run on my apache server for testing purpose..
You need an smtp server to actually send email.
You can use log driver for testing, or if you want to fully test, use a service like https://mailtrap.io or https://ethereal.email/
Please or to participate in this conversation.