Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Blindacme's avatar

How to send/receive mail in Laravel application

Im trying to include an email feature in my application where a user can send and receive their emails from their domain. I figure I may be able to use imap for the receiving but how to set up for sending from that users email address?

So in other words, imagine I have [email protected], my application will have a menu item called "Email" and when clicked it displays the users emails from within our application, eliminating the need for them to constantly check their email using their mail client (just more convenience then anything). The user also has the option to reply or compose emails to be sent from their email account.

Anything I am finding online is specific to how the application can send emails which I already know how to do. Can anyone provide any direction on best practices or packages to allow me to do this? Just looking for general direction to get me started.

0 likes
6 replies
vipin93's avatar

"Mail::" use this and read laravel documentation its a simple step

sgrprasad's avatar

Looking for the similar requirement. Where my application should act as email client. Where user of the application should send receive email from their domain email ID's.

Most of them are put on the solution for sending emails.... Appreciate if there are any links or solution to setup so..

yatsenkolesh's avatar

Hey. I do recommend this library for receiving emails - github.com/proxied-mail/laravel-receive-email You can create a proxy email and receive emails that were sent to it via webhook or just via rest API. It doesn't work with IMAP, but it provides you email address and shows you what was received.

martinbean's avatar

@yatsenkolesh Of course you recommend that package: it’s your own.

Nice of you to dig up a 6 year old topic just to reply with spam.

yatsenkolesh's avatar

@martinbean I'm very sorry. Is there any way to show useful packages to another developer? Should I be restricted from promoting my packages?

Please or to participate in this conversation.