2

I want to send an Email through a cron job for every 24hrs once.In that email need to mention all the abandoned cart details. I am new to Cron jobs so can you please explain it. Thanks in advance

4

create new module Vendor_Module

create a new file crontab.xml at this location:

app/code/Vendor/Module/etc/

and insert below code

enter image description here

create new file Customemail.php at the location:

app/code/Vendor/Module/Cron/

and code as below

<?php

namespace Vendor\Module\Cron;

class Customemail
{

    public function execute()
    {

        //send custom mail

    }
}

try this solution

  • Thank You Mohit .Not i got an idea about cron. – Jinitha Sep 21 '18 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.