Skip to content

Schedule #1

@Merk87

Description

@Merk87

Hi.

First of all thanks for the bundle, is really helping me! I was working with it, and I'm adding some functions, like schedule the newsletter, but every time I'm execute it, mail jet just sent it...

I come basically with this adding in the send:

This add in requestUrlBuilder:

else if($resource == "schedule"){ $newsletter_id = $params['ID']; $this->call_url = "https://api.mailjet.com/v3/REST/newsletter/" . $newsletter_id . "/schedule"; }

And in the SendRequest function
} else if($resource == "schedule"){ curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $params['Date']); curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json' )); }

But anytime I try yo schedule I get the correct response:

{ "Count" : 1, "Data" : [{ "Status" : "programmed" }], "Total" : 1 }

But MailJet interprets that the campaign need to be sent... any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions