Bagisto Forum

    Bagisto

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

    Send a notification e-mail to the customer after creating a new invoice is not working

    General Discussion
    2
    8
    381
    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.
    • H
      haseebkamboh last edited by

      • Send a notification e-mail to the customer after creating a new invoice

      • Send a notification e-mail to the customer after creating a refund

      • Send a notification e-mail to the customer after creating a shipment

      • after canceling an order

      For all the above conditions notification e-mail is not sent to customer .

      Bagisto version : v2.1.1

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @haseebkamboh

        Kindly use SMTP credentials in the .env file first for sending an email i have use Mailhog credentials as shown in the below image.

        smtp.png

        After try to send email , all the mails will be recieved after use of SMTP

        hog.png

        Thanks & Regards..!!

        H 1 Reply Last reply Reply Quote 0
        • H
          haseebkamboh @Rishabh-Webkul last edited by

          @Rishabh-Webkul

          Alredy using SMTP credentials in the .env file .

          • When a customer ordered any product than in my admin email am receiving Order Confirmation email . but customer not receiving email after placing a new order. as well as

          • after creating a new invoice

          • after creating a refund

          • after creating a shipment

          • after canceling an order

          Screenshot 2024-03-26 at 4.19.42 PM.png

          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            hello @haseebkamboh

            I think there are some issues with your Bagisto

            After I tried notifications were going for both customers as well as for admin. kindly have a look at the below image

            svdbdb.png

            I have tried for all these

            1. When a customer ordered any product than in my admin email am receiving Order Confirmation email . but customer not receiving email after placing a new order. as well as

            2. after creating a new invoice

            3. after creating a refund

            4. after creating a shipment

            5. after canceling an order

            Thanks & Regards..!!

            H 1 Reply Last reply Reply Quote 0
            • H
              haseebkamboh @Rishabh-Webkul last edited by

              @Rishabh-Webkul
              getting these logs in laravel.log file

              [2024-03-26 14:11:43] local.INFO: Broadcasting [create-notification] on channels [notification] with payload:
              {
              "socket": null
              }
              [2024-03-26 14:13:49] local.INFO: Broadcasting [create-notification] on channels [notification] with payload:
              {
              "socket": null
              }
              [2024-03-26 14:17:08] local.INFO: Broadcasting [update-notification] on channels [notification] with payload:
              {
              "id": 3,
              "status": "processing",
              "socket": null
              }
              [2024-03-26 14:17:33] local.INFO: Broadcasting [update-notification] on channels [notification] with payload:
              {
              "id": 3,
              "status": "completed",
              "socket": null
              }
              [2024-03-26 16:18:55] local.INFO: Broadcasting [create-notification] on channels [notification] with payload:
              {
              "socket": null
              }

              1 Reply Last reply Reply Quote 0
              • Rishabh-Webkul
                Rishabh-Webkul last edited by

                Hello @haseebkamboh

                Kindly install a new Bagisto with the same version that you are using right now 2.1.1 you are using right now on your local setup and then try to send these notifications.

                If email notifications go successfully, Then there is an issue in this, might be these errors came due to some customizations that you have done, or some configuration issues.

                Thanks & regards..!!

                H 1 Reply Last reply Reply Quote 0
                • H
                  haseebkamboh @Rishabh-Webkul last edited by

                  Hey @Rishabh-Webkul installed a new Bagisto version 2.1.1 but getting same response .

                  can u help me figure out the path of Order Confirmation Code which sent the email to Admin when a customer buy a product ? so that i can figure out .

                  1 Reply Last reply Reply Quote 0
                  • Rishabh-Webkul
                    Rishabh-Webkul last edited by

                    Hello @haseebkamboh

                    Greetings of the day..!!

                    You are doing something wrong because when I tried it my local with the same version mails were going successfully.

                    svdbdb.png

                    But if you want to know the Path of this to check the code of admin order mail kindly check this out.
                    packages >> Webkul >> Admin >> src >> Listeners >> Order.php

                    mails.png

                    and from here mail notification is created.

                    packages >> Webkul >> Admin >> src >> Mail >> Order >> CreatedNotification.php

                    prepareMail.png

                    Thanks & Regards..!!

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