L
L
lemonlimelike2019-04-17 22:27:37
gmail
lemonlimelike, 2019-04-17 22:27:37

How to send letters on behalf of the site?

I use server, not hosting, laravel. It is necessary to send letters on behalf of the site, for example [email protected] Connected to smpt.gmail.com. Letters are sent from the gmail address, but it is necessary that it be sent on behalf of the site. How to do it? What do you need? Please tell me I will be very grateful. In the chest indicated so

return $this->from('[email protected]')
                    ->view('main.pay.email');

But all exactly the letter is sent from the gmail mail address.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
LaraLover, 2019-04-17
@lemonlimelike

So you connect to your gmail account, it sends from it. To send from the site, expand the mail server and connect via smtp to it.

A
Alexander, 2019-04-18
@xpert13

1. Set up mail for your domain using free mail for Yandex domain
2. Create an admin account there
3. Set up mail in Laravel to send mail through this account instead of gmail

M
Monreo, 2019-04-24
@Monreo

To send on behalf of the company, you need to set up corporate mail. Here is a detailed breakdown of how to do this in Gmail, Mail.Ru, and Yandex Mail .

D
DevMan, 2017-03-01
@game802

hmm... https://regex101.com/r/MHyvy5/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question