title: How to manage .env file in order to receive email in contact form in laravel?
body: <p>I am working on a website in which I have built contact us form which has both controller and html as shown below. </p>
  
  <p>The snippets of controller code is :</p>
  
  <pre><code>{
  return view('posting');
  }
  public function store(Request $request)
  {
  /*
  dd($request-&gt;all());
  */   
  $this-&gt;validate($request, [
  'name' =&gt; 'required',
  'email' =&gt; 'required|email',
  'number' =&gt; 'required',
  'city' =&gt; 'required',
  'post' =&gt; 'required'
  ]);
  }
  </code></pre>
  
  <p>The snippets of HTML code for the form is:</p>
  
  <pre><code>div class="form-row"&gt;
  &lt;div class="form-group disney_posting_number pr-4 col-md-6"&gt;
     &lt;label class="ml-1" style="width:100%;text-align:left;"&gt;number*&lt;/label&gt;
     &lt;input type="number" name="number" class="form-control"&gt;
     @if ($errors-&gt;has('number'))
     &lt;small class="form-text invalid-feedback"&gt;{{$errors-&gt;first('number')}}&lt;/small&gt;
     @endif
  &lt;/div&gt;
  &lt;div class="form-group disney_posting_city pl-4 col-md-6"&gt;
     &lt;label class="ml-1" style="width:100%;text-align:left;"&gt;city*&lt;/label&gt;
     &lt;input type="city" name="city" class="form-control"&gt;
     @if ($errors-&gt;has('city'))
     &lt;small class="form-text invalid-feedback"&gt;{{$errors-&gt;first('city')}}&lt;/small&gt;
     @endif
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now I am not sure what changes I need to do .env file in order to actually start receiving email. At this moment, .env file has the following details:</p>
  
  <pre><code>MAIL_DRIVER=log
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=587
  MAIL_USERNAME=abc@gmail.com
  MAIL_PASSWORD=
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <p>After filling the form, the information goes <strong>inside the log section of the laravel</strong>. </p>
  
  <p><br></p>
  
  <p><strong>Problem Statement</strong>:</p>
  
  <p>I am wondering what changes I need to do in the .env file so that I start receiving email. This is the 1st time I am building the form so I am not sure what fields I need to add in the above .env file section in order to make it work actually. </p>