bagisto email functionality provide ????



  • can you help me how to work email
    ex. order place
    i don't get now any email



  • Hi Darshan,

    1. You need to set mail parameters in .env file for mail functionality.

    MAIL_DRIVER=
    MAIL_HOST=
    MAIL_PORT=
    MAIL_USERNAME=
    MAIL_PASSWORD=
    MAIL_ENCRYPTION=
    SHOP_MAIL_FROM=
    ADMIN_MAIL_TO=

    1. When order successfully created then we fire this event with order data like -
    Event::fire('checkout.order.save.after', $order);
    

    and listening this event in Webkul\Admin\Listeners\[email protected]

    and calling a function ' sendNewOrderMail ' to send mail of order placed.

    Thanks


Log in to reply