Bagisto Forum

    Bagisto

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

    The mail setup on AWS instance doesnot work for Bagisto

    Bug Report
    2
    8
    560
    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
      sgrprasad last edited by

      We have setup smtp mail settings for our application.
      The registration and other things email works but when we send email from Bagisto does not work.

      Even some one raised bug in Aug 2020 but no response yet on the same.

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @sgrprasad
        you need to add the aws smtp details inside .env file.. have you done with this??

        S 1 Reply Last reply Reply Quote 0
        • S
          sgrprasad @Vaishali Agarwal last edited by

          @Vaishali-Agarwal
          The application is running on AWS EC2 instance
          I have setup the SMTP configuration in .env file
          Except Bagisto Cart order i am receiving emails for registration of user etc which is not part of Bagisto. my .env has the following SMTP setup

          MAIL_MAILER=smtp
          MAIL_HOST=smtp.mailtrap.io
          MAIL_PORT=587
          MAIL_USERNAME=**********
          MAIL_PASSWORD=**********
          MAIL_ENCRYPTION=tls
          mail_from_address=email@email.com
          MAIL_FROM_NAME="ADMIN"

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            @sgrprasad
            add the AWS details in .env file as added in this post.

            https://forums.bagisto.com/topic/1995/aws-ses-email-configuration-in-bagisto

            S 1 Reply Last reply Reply Quote 0
            • S
              sgrprasad @Vaishali Agarwal last edited by

              @Vaishali-Agarwal
              The Mail Host is different and not the AWS SES different email SMTP we use
              cleared the cache using the command from project's root php artisan config:cache
              and not using the ADMIN_MAIL_TO=abc@xyz.com in my code.
              But emails not shooting even after cache clear as well.
              Should we deliberately use the following format in .env?

              MAIL_DRIVER=smtp
              MAIL_HOST=email-smtp.us-west-2.amazonaws.com
              MAIL_PORT=587
              MAIL_USERNAME=ccdsfsdcs
              MAIL_PASSWORD=ddddsadsadsadadsa
              MAIL_ENCRYPTION=tls
              SHOP_MAIL_FROM=abc@xyz.com
              ADMIN_MAIL_TO=abc@xyz.com
              MAIL_FROM_NAME=admin

              1 Reply Last reply Reply Quote 0
              • V
                Vaishali Agarwal last edited by

                @sgrprasad
                No, in the above example Mail_DRIVER, Mail_PORT, Mail_encryption will be the same and the rest of details may change based on credentials.
                also, make sure the password should not contain any special character

                S 1 Reply Last reply Reply Quote 0
                • S
                  sgrprasad @Vaishali Agarwal last edited by

                  @Vaishali-Agarwal
                  Hi Vaishali,

                  Same thing is set, even in my mailtrap account pwd does not have a special character but still not able to send email. There were no errors but not receiving email when order is success.

                  1 Reply Last reply Reply Quote 0
                  • V
                    Vaishali Agarwal last edited by

                    @sgrprasad
                    could you check the error on log file at path storage/logs/laravel.log

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