Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    how admin will get an email when the Customer places an order?

    General Discussion
    4
    6
    1179
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sanjana singh last edited by sanjana singh

      how admin will get an email when the Customer places an order?

      1 Reply Last reply Reply Quote 0
      • P
        prateek-webkul last edited by

        Hello sanjana,

        To get mail for admin on order place, follow below steps :

        1. You need to set 'ADMIN_MAIL_TO' and 'SHOP_MAIL_FROM' parameter in .env file

        2. Go to admin package /src/Mail/NewAdminNotification.php file, replace build method with

          public function build()
          {
          return $this->to(env('ADMIN_MAIL_TO'))
          ->from(env('SHOP_MAIL_FROM'))
          ->subject(trans('shop::app.mail.order.subject'))
          ->view('shop::emails.sales.new-admin-order');
          }

        1 Reply Last reply Reply Quote 0
        • S
          sandeep last edited by

          Order is main functionality of eCommerce website, Why this was not integrated in earlier build? Or It will send default mail to admin email id?

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by

            Hello Sandeep,

            It is already implemented in our application, when any one places any order then admin and customer will get mail for that order.

            You need to set admin mail id in .env file.

            Thanks

            S 1 Reply Last reply Reply Quote 0
            • S
              sandeep last edited by

              I am using gmail id as smtp.

              1 Reply Last reply Reply Quote 0
              • S
                sandeep @rahul last edited by sandeep

                @rahul I have already added
                SHOP_MAIL_FROM=info@domain.co.in
                ADMIN_MAIL_TO=info@domain.co.in

                but no mail received on admin or customer's email

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post