Configure sender mail address in laravel .env file












1















Im using laravel 5.6 application to develope the project. In that project i have to send mail to the user. so i want to configure the sender mail address in env and mail.php file.



If it is for gmail then i will use like below in env file:



MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.io
MAIL_PORT=587
MAIL_USERNAME=vino@gmail.com
MAIL_PASSWORD=feaeda91d
MAIL_ENCRYPTION=TLS


Then in my mail.php:



'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),


But im not using gmails i want to use my office email address (vino123@xxx.in) and the domain name is mail.xxx.in so i dont know how to configure host, driver and port values in my env and mail.php file










share|improve this question





























    1















    Im using laravel 5.6 application to develope the project. In that project i have to send mail to the user. so i want to configure the sender mail address in env and mail.php file.



    If it is for gmail then i will use like below in env file:



    MAIL_DRIVER=smtp
    MAIL_HOST=smtp.gmail.io
    MAIL_PORT=587
    MAIL_USERNAME=vino@gmail.com
    MAIL_PASSWORD=feaeda91d
    MAIL_ENCRYPTION=TLS


    Then in my mail.php:



    'driver' => env('MAIL_DRIVER', 'smtp'),
    'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
    'port' => env('MAIL_PORT', 587),


    But im not using gmails i want to use my office email address (vino123@xxx.in) and the domain name is mail.xxx.in so i dont know how to configure host, driver and port values in my env and mail.php file










    share|improve this question



























      1












      1








      1








      Im using laravel 5.6 application to develope the project. In that project i have to send mail to the user. so i want to configure the sender mail address in env and mail.php file.



      If it is for gmail then i will use like below in env file:



      MAIL_DRIVER=smtp
      MAIL_HOST=smtp.gmail.io
      MAIL_PORT=587
      MAIL_USERNAME=vino@gmail.com
      MAIL_PASSWORD=feaeda91d
      MAIL_ENCRYPTION=TLS


      Then in my mail.php:



      'driver' => env('MAIL_DRIVER', 'smtp'),
      'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
      'port' => env('MAIL_PORT', 587),


      But im not using gmails i want to use my office email address (vino123@xxx.in) and the domain name is mail.xxx.in so i dont know how to configure host, driver and port values in my env and mail.php file










      share|improve this question
















      Im using laravel 5.6 application to develope the project. In that project i have to send mail to the user. so i want to configure the sender mail address in env and mail.php file.



      If it is for gmail then i will use like below in env file:



      MAIL_DRIVER=smtp
      MAIL_HOST=smtp.gmail.io
      MAIL_PORT=587
      MAIL_USERNAME=vino@gmail.com
      MAIL_PASSWORD=feaeda91d
      MAIL_ENCRYPTION=TLS


      Then in my mail.php:



      'driver' => env('MAIL_DRIVER', 'smtp'),
      'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
      'port' => env('MAIL_PORT', 587),


      But im not using gmails i want to use my office email address (vino123@xxx.in) and the domain name is mail.xxx.in so i dont know how to configure host, driver and port values in my env and mail.php file







      laravel-5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 '18 at 10:43







      VinoCoder

















      asked Nov 21 '18 at 10:29









      VinoCoderVinoCoder

      563619




      563619
























          1 Answer
          1






          active

          oldest

          votes


















          1














          For that you must ask all Informations related the Mail Server which is responsible for sending on receiving email, of you office domain to Who is responsible for managing that server.



          MAIL_DRIVER=smtp
          // The server IP address or domaine name of the mail server
          MAIL_HOST=your_ofice_domaine_name.in
          // Port on which the server is receiving email
          MAIL_PORT=587
          // The username with which to make authentification on the mail server
          MAIL_USERNAME=johndoe
          // The password of the user
          MAIL_PASSWORD=feaeda91d
          // If the server is using encryption you can set it here
          MAIL_ENCRYPTION=TLS





          share|improve this answer
























          • My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

            – VinoCoder
            Nov 21 '18 at 11:18











          • You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

            – Yves Kipondo
            Nov 21 '18 at 11:28











          • Your answer is so helpful.. thanks

            – VinoCoder
            Nov 21 '18 at 11:56











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53410075%2fconfigure-sender-mail-address-in-laravel-env-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          For that you must ask all Informations related the Mail Server which is responsible for sending on receiving email, of you office domain to Who is responsible for managing that server.



          MAIL_DRIVER=smtp
          // The server IP address or domaine name of the mail server
          MAIL_HOST=your_ofice_domaine_name.in
          // Port on which the server is receiving email
          MAIL_PORT=587
          // The username with which to make authentification on the mail server
          MAIL_USERNAME=johndoe
          // The password of the user
          MAIL_PASSWORD=feaeda91d
          // If the server is using encryption you can set it here
          MAIL_ENCRYPTION=TLS





          share|improve this answer
























          • My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

            – VinoCoder
            Nov 21 '18 at 11:18











          • You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

            – Yves Kipondo
            Nov 21 '18 at 11:28











          • Your answer is so helpful.. thanks

            – VinoCoder
            Nov 21 '18 at 11:56
















          1














          For that you must ask all Informations related the Mail Server which is responsible for sending on receiving email, of you office domain to Who is responsible for managing that server.



          MAIL_DRIVER=smtp
          // The server IP address or domaine name of the mail server
          MAIL_HOST=your_ofice_domaine_name.in
          // Port on which the server is receiving email
          MAIL_PORT=587
          // The username with which to make authentification on the mail server
          MAIL_USERNAME=johndoe
          // The password of the user
          MAIL_PASSWORD=feaeda91d
          // If the server is using encryption you can set it here
          MAIL_ENCRYPTION=TLS





          share|improve this answer
























          • My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

            – VinoCoder
            Nov 21 '18 at 11:18











          • You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

            – Yves Kipondo
            Nov 21 '18 at 11:28











          • Your answer is so helpful.. thanks

            – VinoCoder
            Nov 21 '18 at 11:56














          1












          1








          1







          For that you must ask all Informations related the Mail Server which is responsible for sending on receiving email, of you office domain to Who is responsible for managing that server.



          MAIL_DRIVER=smtp
          // The server IP address or domaine name of the mail server
          MAIL_HOST=your_ofice_domaine_name.in
          // Port on which the server is receiving email
          MAIL_PORT=587
          // The username with which to make authentification on the mail server
          MAIL_USERNAME=johndoe
          // The password of the user
          MAIL_PASSWORD=feaeda91d
          // If the server is using encryption you can set it here
          MAIL_ENCRYPTION=TLS





          share|improve this answer













          For that you must ask all Informations related the Mail Server which is responsible for sending on receiving email, of you office domain to Who is responsible for managing that server.



          MAIL_DRIVER=smtp
          // The server IP address or domaine name of the mail server
          MAIL_HOST=your_ofice_domaine_name.in
          // Port on which the server is receiving email
          MAIL_PORT=587
          // The username with which to make authentification on the mail server
          MAIL_USERNAME=johndoe
          // The password of the user
          MAIL_PASSWORD=feaeda91d
          // If the server is using encryption you can set it here
          MAIL_ENCRYPTION=TLS






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 '18 at 11:09









          Yves KipondoYves Kipondo

          1,383514




          1,383514













          • My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

            – VinoCoder
            Nov 21 '18 at 11:18











          • You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

            – Yves Kipondo
            Nov 21 '18 at 11:28











          • Your answer is so helpful.. thanks

            – VinoCoder
            Nov 21 '18 at 11:56



















          • My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

            – VinoCoder
            Nov 21 '18 at 11:18











          • You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

            – Yves Kipondo
            Nov 21 '18 at 11:28











          • Your answer is so helpful.. thanks

            – VinoCoder
            Nov 21 '18 at 11:56

















          My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

          – VinoCoder
          Nov 21 '18 at 11:18





          My office mail link is http://mail.xxxx.in/ (here xxxx is my office name).. Can i use this for MAIL_DRIVER and MAIL_HOST

          – VinoCoder
          Nov 21 '18 at 11:18













          You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

          – Yves Kipondo
          Nov 21 '18 at 11:28





          You can use It only for MAIL_HOST and you must remove http:// which come before the host name. Related to MAIL_DRIVER you can still using smtp which is generaly the driver which is used by most Mail Server. Unless you are using another specificaly.

          – Yves Kipondo
          Nov 21 '18 at 11:28













          Your answer is so helpful.. thanks

          – VinoCoder
          Nov 21 '18 at 11:56





          Your answer is so helpful.. thanks

          – VinoCoder
          Nov 21 '18 at 11:56




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53410075%2fconfigure-sender-mail-address-in-laravel-env-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          SQL update select statement

          WPF add header to Image with URL pettitions [duplicate]