A
A
ainilia2018-09-09 19:43:33
Email
ainilia, 2018-09-09 19:43:33

How to implement receiving mail in Laravel?

How to use Laravel to receive incoming mail using POP3 or IMAP protocols? Or other options.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
U
UksusoFF, 2018-09-09
@UksusoFF

First link in google demo app for Laravel: https://github.com/ladybirdweb/momo-email-listener
Uses php-imap

S
Sergey Vorobyov, 2018-09-10
@alert2006

If the speed of the appearance of a new letter on the site is important, then we recently did this:
- zimbra was installed on a separate vps
- all mail from the desired mailbox was redirected to a mailbox in zimbra
- a simple php script, once a minute, collected mail from zimbra via api ( it's faster than imap).
Bottom line: a new letter in the system appeared in 30-50 seconds.

J
just_hank_moody, 2018-09-10
@just_hank_moody

An alternative option specifically for Exim:
You can add a configuration so that all incoming letters to a specific mailbox are redirected to a specific script that has already parsed data
https://www.exim.org/exim-html-current/doc/html/sp.. .

M
miki131, 2018-09-10
@miki131

See also https://laravel-news.com/laravel-inbound-email

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question