Answer the question
In order to leave comments, you need to log in
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');
Answer the question
In order to leave comments, you need to log in
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.
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
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 .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question