API control over automatic footer injection & API test send endpoint & test emails and scheduling
P
Patrik B.
MailerLite automatically appends a compliance footer to scheduled/API campaigns even if html already includes footer. There is no API method to send a test message or disable the system footer, which is critical for API-driven custom HTML workflows.
Madina Umirbek
Thank you for posting, Patrik B.! I have a few more questions for you:
Can you provide examples of specific scenarios where the automatic footer injection causes issues in your current workflow?
What specific criteria or conditions would you like to use to determine which emails receive test sends via the API?
How do you envision the scheduling feature working in terms of setting default times for different clients?
·
Reply
P
Patrik B.
Madina Umirbek
1) Here is an example of me trying to inject a real simple default footer for testing and then having two (see screenshot)
<br><hr style="margin-top:30px;border:none;border-top:1px solid #ddd;"><p style="font-family:Arial,Helvetica,sans-serif;font-size:11px;color:#777;line-height:1.4;text-align:center;">You’re receiving this email because you subscribed to our list or made a purchase.<br><a href="{{preferences}}" style="color:#777;text-decoration:underline;">Update frequency</a> | <a href="{{unsubscribe}}" style="color:#777;text-decoration:underline;">Unsubscribe</a></p>
2) I would like to be able to send myself a test email or a test account so I can see if the email goes into the promo tab or not of gmail. Also I want to reuse that design and use beamer email to get it into another system.
Here is sample applescript code that works fine with Mailchimp of sending an email test.
set mycurlcommand to "curl -X POST 'https://" & myUsServer & ".api.mailchimp.com/3.0/campaigns/" & myid & "/actions/test' --user \"admin:" & myadminkey & "\" -d '{\"test_emails\":[\"" & MyEmail & "\"],\"send_type\":\"regular\"}' "
MyEmail - should be able to take a single email or be an email set up under defaults as test email account if you want to lock it down. I usually do at least 2 tests one to my gmail and one to another email.
3) I would like have a default time under the account defaults something like - default send time: 7 am (pacific time) etc. See how I would make the UI for the schedule box (probably the simplest to implement. And it would be based on a field set before in the account defaults with ability to override or just schedule.
In terms of API I would like to be able to do something similar to this on my mac
In terms of the UI - I would like to have another field - default send time and default test email - with the option to have at least two.
Photo Viewer
View photos in a modal