21.1 C
New York
Wednesday, May 24, 2023

Introduction to the Stripo Mock Server — Stripo.electronic mail

This September, we launched our Mock Server. It’s there to allow each electronic mail marketer to construct end-points* on their very own for checking if their AMP emails are able to coping with servers and of sending/receiving knowledge, and to avoid wasting time on electronic mail manufacturing.

*Finish-point is a vacation spot on a server the place requests are delivered to for additional processing, and it’s also meant for exchanging knowledge. The top-point is usually represented by a hyperlink.

Mock is definitely a faux object that acts like actual knowledge.

What’s it meant for? With our mock server, any electronic mail marketer can begin designing AMP emails instantly with out the need to attend for builders to offer them with end-points from actual servers.

You construct and add mock end-points to AMP parts in emails to determine what knowledge you need to get from / ship to servers. 

If you guarantee that this AMP electronic mail with our mock end-points is precisely what you want, now you can ship it to builders and ask them to construct actual end-points just like the mock ones that you simply’ve constructed with us.

This considerably saves time on constructing AMP emails and permits assigning clear and sure duties to builders.

What emails require end-points

You have to the mock server for constructing advanced AMP emails. By a fancy AMP electronic mail, we imply the emails that do talk together with your servers — they both ship, or obtain info.

These are varieties, questionnaires, digests, “time-ago” parts, i.e. all information that will get up to date in emails routinely or is shipped to servers for additional processing.

Although, you don’t want Mock servers for easy AMP emails. The straightforward AMP emails are those that don’t talk together with your servers.  

These are accordion, picture carousel, lightbox impact, selector (the place you decide sizes, colours, stuffing), and many others. 

You may construct them with Stripo with actually no coding expertise.

Advantages of utilizing our Mock server:

  1. You construct end-points by yourself with our assist. You do not want deep coding expertise. 
  2. Although, it’s you who defines the set of required enter and output parameters.  
  3. You test in case your AMP emails that have to put up or obtain info from servers work properly and every part is ready accurately. You do it previous to implementing end-points in your aspect.
  4. You may even view knowledge gathered out of your electronic mail templates.

    FYI: gathered knowledge is saved on our servers for less than half-hour.
  5. You may assign clear and particular duties to builders. With out this mock code, it might be considerably troublesome to elucidate to them what precisely you want and the way your emails are alleged to work together with servers and course of knowledge.

How does it work?

It is going to take you simply three steps to construct faux end-points and test in case your AMP emails are able to coping with servers and if every part is ready accurately.

1. Creating end-points

 Creating end-points with Stripo won’t take you lengthy:

To begin working with our Mock server, you must:

  • develop the “Learn and Create Finish-Factors” part in our accordion;

Mock Server_Main Page

  • choose “Get” or “Publish” tab in it. I select “put up” as I’m constructing a very new end-point;

Get or Post Methods

Essential to notice:

When coming into the “Get” tab, you may see what end-points you’ve used earlier than. You group them into sections by names and classes. 

When coming into the “Publish” tab, you construct a very new end-point.

  • click on the “Attempt it out” button;

Try It Out Button_Mock Server

  • in a brand new window, give names to “Endpoint” and “group”. We suggest giving clear and straightforward names as you’ll need them later for checking the information which you obtain from end-points;

Working on EndPoin Code

Essential to notice:

Select the “Get” methodType whenever you need to return knowledge from server to emails. It’s meant for digests, product updates, like amount, new costs, and many others.

Select the “Publish” methodType when you must ship knowledge from emails to servers. It’s meant for suggestions, varieties, questionnaires, and many others.

  • now, if you would like simply to thank your clients for sharing their suggestions, take away the “response” part until “response standing”;

Removing Superfluous Elements of Your Emails

Essential to know:

You have to the eliminated a part of the code to offer recipients with, say, promo codes or some other further info that relies on their exercise and requires utilizing variables.

However we don’t do it now as we aren’t going to supply promo codes to our recipients for sharing suggestions.

  • “responseStatus”: 200 signifies that your end-point has been constructed accurately and can be utilized in your emails. When you generate the mock code, and if it’s been constructed accurately, you will note this mark 200;
  • so, my mock code seems as proven under;

  • click on the “Execute” button to generate your end-point;

The Execute Button

  • within the new window under, please discover the “Code” —> “Response Physique” part;
  • to the left, we see mark “200” — this implies our code has been generated accurately;
  • copy the end-point, which is positioned in quotes. The top-point is definitely a hyperlink to the server the place responses will probably be despatched to;

The Embed Code

Essential to notice:

The curl part is supposed for builders solely. We strongly suggest that you don’t work with it.

2. Including this end-point in your AMP electronic mail

Regardless of should you use AMP electronic mail templates that Stripo provides, or use parts that Google provides and embed them in Stripo electronic mail templates, the algorithm of including end-points stays the identical in case you are constructing AMP electronic mail with Stripo.

I used the next template for the take a look at.

AMP Email Template with Survey

Use this template

This template permits recipients to price merchandise and depart feedback.

Including endpoints in emails:

So, so as to add your end-point to an electronic mail template, you must:

  • click on this AMP factor in your electronic mail template to activate settings of this sure element. The code editor will get open, and it’ll present you the code of this specific factor;
  • substitute the default end-point with the end-point that you simply’ve simply generated;

Replacing default end-point with Necessary One

  • preview your electronic mail. If there’s any mistake, or a lacking URL in your AMP electronic mail, our code validator will present it to you;


  • you should definitely insert hyperlinks to all photos in your emails together with social media icons.

Please do not forget that in case your AMP electronic mail comprises any error and your template doesn’t move our AMP validator, recipients will see the normal HTML model of this electronic mail.

3. Checking in case your end-points work properly

To test in case your end-points work accurately in emails, we strongly suggest that you simply ship this electronic mail to your electronic mail tackle as an alternative of testing it within the “preview mode” in our electronic mail builder.

Essential to notice:

You have to add “information@stripo-test.electronic mail” in your Gmail account as a trusted sender.

For extra info on learn how to do it, please check with our devoted weblog put up, part Tips on how to take a look at AMP emails with Stripo

  • to ship a take a look at electronic mail, click on the “Check” icon;

Testing AMP emails_The Test Icon

  • enter your electronic mail tackle. You may additionally enter your colleagues’ electronic mail addresses. When coming into them, put commas between addresses;

Entering Email Addresses_Testing AMP Emails

  • open this electronic mail in your Inbox;

Please be suggested that solely registered customers can ship take a look at emails.

Get registered with Stripo

  • price your product gadgets and depart any remark, click on “ship suggestions”;
  • you will note “Thanks in your opinion”;

Submitting Feedbacks

Checking Data on Our Mock Servers

  • enter the identify of your end-point — in our case, it’s “suggestions”;
  • enter the identify of your group — we named it “ampemails”;
  • click on the “execute” button;

Entering End-Point and Group Names

  • when you click on this button, your report will get generated. Scroll right down to see it;
  • within the “Request URL” subject, one can find the duplicated end-point. It’s meant to allow you to just be sure you entered appropriate names for checking the obtained knowledge;
  • the mark “200” signifies that your end-point labored properly;
  • within the “Response physique” part, one can find the solutions your customers gave to you — you see charges and feedbacks.

Viewing Results of Feedbacks

Essential to say:

I need to repeat myself — all the information/responses are saved on our Servers for less than half-hour. We consider that half-hour are fairly sufficient to guarantee that every part was constructed and set accurately and the server receives crucial info.

When you see the solutions, it means you probably did every part properly.

Please be suggested that your server will even have to fulfill the CORS necessities. Builders will do it very quickly.

Why do you want the “Check created end-points” part in our Mock Server?

It’s meant to allow you to take a look at your end-points inside our servers with out pasting and making an attempt them out in actual emails. You test in case your end-points ship and obtain the set enter and output parameters accurately.

To check your end-points, you must:

  • enter this part;
  • select the mandatory technique — we select “POST”;
  • click on the “Attempt it out” button;
  • enter the end-point and group’s names in respective fields;

Testing Emails with Mock Server

  • click on “execute”;
  • within the “Server response” part, see the standing of your requests to the server — if it reveals “200”, then you could relaxation assured — every part has been carried out proper, and you could now begin constructing actual end-points in your server.

Remaining ideas

Our mock server is supposed to assist electronic mail entrepreneurs and electronic mail coders construct endpoints for testing functions.

Embed the endpoints that you simply construct with us in your AMP electronic mail templates to see how the latter talk with servers.

When you’ve got some questions left on learn how to work with our mock server, please depart a remark under or electronic mail our tech crew at help@stripo.electronic mail.

We will probably be joyful to help.

Use Stripo

Related Articles


Please enter your comment!
Please enter your name here

Latest Articles