Skip to content

The three ways to write a mailing email

A mailing email can be written like a normal email, designed with blocks or pasted as HTML code if you already have it made in another tool. You choose in How do you want to write it?, in The email section of a newsletter or above the design of a template. All three accept variables (the customer's name, your company's details…), carry the legal footer if needed and look in the preview exactly as they will go out.

Is it the same in a newsletter as in a template?

Yes: the three ways, their buttons and their notices are the same. In a newsletter, Write is the one chosen by default and already includes the greeting; Design with blocks opens the designer full screen (Back to the newsletter to leave), and the preview is alongside, in How it will look. What you write in a newsletter belongs to it: to reuse it in others, Save as template. It is explained in your first newsletter.

Which way of writing should I choose?

WayWhat forHow you work
WriteA simple email: a few paragraphs, an image, a link. It is the quickestLike in a word processor: bold, headings, lists, colours, links, images
Design with blocksA newsletter with sections, columns, buttons and catalogue itemsBy dragging blocks. It is explained in how to design a template
Paste HTML codeA newsletter you already have made in another tool (Mail Relay, Mailchimp…)By pasting its code; you see how it looks alongside

If in doubt, start with Write. If later you want more design, switch it to HTML code or start with blocks.

How do I write an email with the text editor?

  1. In the template, click Write in How do you want to write it?.
  2. Write the email in the editor. The bar at the top has undo, headings, bold, italic, underline, text and background colour, alignment, lists, link, image and divider.
  3. To insert a detail for each customer, leave the cursor where you want it and choose it in the Variables drop-down list.
  4. Click Save.

A new template starts with a greeting (‘Hello’ and the customer's name) and a line for you to change.

Are there ready-written emails so I do not start from scratch?

Yes: three built-in templates made for Write, which open in the text editor:

TemplateWhat for
Simple newsletterThe month's news: a headline, two short news items and a button to your website
News itemAnnouncing one new thing: what it is, why it matters (a list) and a button
OfferA discount: the offer headline, a code, a button and the small print

All three already have your company logo at the top (if there is a logo in the company record), the greeting with each customer's name, a line for questions with your phone number and the signature with your company name, all by variable: each email goes out with your details and those of whoever receives it. The program adds the footer with the unsubscribe link, as in any written email.

In a newsletter, choose it in Start from a template: its text is copied into the newsletter and you change it there. Like all built-in templates, they are not changed in Mailing → Templates: they are duplicated.

The email goes out in a 600-pixel white column centred on a light grey background, with a plain font that looks the same in Outlook, in Gmail and on mobile. On mobile, the column takes up the full width.

How do I insert the customer's name while I write?

With the Variables drop-down list, above the editor. Leave the cursor where you want the detail and choose it: the details are grouped (Contact, Customer, Your company, Links…) and when you hover over them they say what they insert.

In the editor, the variable appears as a coloured pill with its name, for example “Contact name (or ‘customer’)”. It is a single piece: typing around it does not break it, and it is deleted whole. In each email, the detail of whoever receives it appears: ‘Ana’ in Ana's and ‘Luis’ in Luis's.

Link variables (Unsubscribe, Preferences, View in browser) go in as a link with its text, for example ‘Unsubscribe me’.

What each variable means is in template variables.

How do I put an image in a written email?

  1. Leave the cursor where the image goes and click Insert image on the bar.
  2. Click Browse to choose the file on your computer, or drag it into the window.
  3. Click Insert to place it.

The image is uploaded to your installation and the email refers to it by its address, not inside the message: that way it is light and arrives complete. JPG, PNG and GIF are accepted.

You can also paste it with Ctrl+V: a screenshot or a copied image is uploaded the same way.

What happens if the image is heavy?

If a JPG or PNG image is over 1 MB, Powergest saves it smaller (1200 pixels wide) and tells you. A heavy image is slow to show on mobile. Screenshots are almost always over that size.

There are two cases where it is not reduced and not uploaded:

How do I reuse an image I have already uploaded?

All the images you upload for your emails are kept in your company's gallery: those from the text editor, those from the block designer, those from a ZIP and the embedded ones from a pasted email.

The gallery shows the most recently uploaded first, with their name, type, size and the day they were uploaded; Oldest moves to the next page.

Yes, with Delete below the image, if no email uses it: not a template or a newsletter, nor one already sent (whoever received it still sees it when they open it, and would stop seeing it). If any uses it, it tells you which one and does not delete it. It cannot be deleted in the images window of the block designer: do it from Uploaded images in the text editor or the code editor.

How do I paste a newsletter made in another tool?

  1. In the other tool, look for the option to export or view the email's HTML code and copy it all.
  2. In the template, click Paste HTML code in How do you want to write it?.
  3. Click the editor's Paste HTML code button, paste the code into the window and click Use this code.
  4. Look at the preview on the right and at what the validation says, fix whatever is needed and click Save.

You can keep changing the code by hand in the editor on the left. The preview on the right is put together by the server when you stop typing, with the sample data and the legal footer if needed.

To insert a detail for each customer in the code, you write its variable between double curly brackets: {{ contacto.nombre }}, or {{ contacto.nombre | default: "cliente" }} for anyone without a name.

Can I upload the ZIP the other tool gives me?

Yes. Mail Relay, Mailchimp and almost all tools export the newsletter as a ZIP with the HTML page and a folder of images.

  1. Click Paste HTML code in How do you want to write it?.
  2. Click Upload a ZIP in the editor and choose the file. If there was already code, it replaces it.
  3. Look at the box that appears below: it says which page was used, how many images were uploaded and what was left out. Check the preview and click Save.

The images the page uses are uploaded to your installation (and kept in the gallery) and the code is changed to refer to them by their address. Anything that is not the page or its images (separate style sheets, fonts, other pages) is left out and reported: in an email, styles have to be inside the HTML.

What happens to the other tool's tags?

Email tools have their own tags for the customer's name or the unsubscribe link. Those between double curly brackets ({{ contact.firstname }}) or between curly brackets and percent signs ({% unsubscribe %}) clash with the program's variables, and the validation marks them as an error with their line.

You have two options:

Tags with another form (*|FNAME|*, [nombre]) do not clash with anything: they are sent as they are. It is best to remove them or replace them with a variable, because the customer would see them written out.

What do I do if the pasted email has the images inside it?

Some emails have the images embedded in the code (data:image/…;base64). An email like that is very heavy and many email programs do not show the image, so the validation marks it as an error.

Click Upload the embedded images: each image is uploaded to your installation and the code is changed to refer to it by its address. The same images are valid as when uploading them by hand: JPG, PNG or GIF, and a heavy one is saved smaller. If any is not valid, it says so and changes nothing; save it in another format or smaller, and paste the code again.

What does the program remove from a pasted email?

Whatever cannot go in an email: programs (<script>), windows onto other pages (<iframe>, <object>, <embed>), forms, automatic redirects and links or attributes that run code (javascript:, onclick…). Everything else goes out as it is, including the Outlook tricks that newsletters carry.

You do not need to remove it by hand: it is removed when sending, and the validation warns you with the line of what will be removed. The preview already shows the email without it.

Can I change the way of writing once I have started?

Yes, with How do you want to write it?. What happens depends on where you are coming from and where you are going:

FromToWhat happens
WritePaste HTML codeThe same email, now as code. Free, without asking
Design with blocksPaste HTML codeThe design is converted into code, with its variables and its conditions. It asks for confirmation: afterwards it can no longer be edited with blocks
Paste HTML codeWriteWhat is inside the email goes into the text editor. It asks for confirmation: the editor can spoil a design made with tables and columns
Design with blocksWriteA blank email is started. It asks for confirmation. So as not to lose the design, switch it to code first
Write or codeDesign with blocksA blank block design is started. It asks for confirmation

While the template has nothing of yours in it, switching is free in every case.

Yes. A marketing email has to say who is sending it and offer a way to unsubscribe. If the email does not have the unsubscribe link ({{ enlace.baja }}), the program adds a footer at the end with your company details and the unsubscribe link; in a pasted email, just before the end of the body. If it already has it, it goes out as it is and is not repeated.

If something goes wrong

What you seeWhat is happeningWhat to do
‘There are {{ … }} or {% … %} tags that are not ERP variables…’The pasted email has tags from another toolReplace them with a variable or click Treat as text
‘There’s an embedded image in the email…’The image is inside the codeClick Upload the embedded images
‘There’s an image that was never uploaded…’The image did not finish uploading while you were writingDelete it and add it again
‘… is removed when it’s sent…’The code has something that cannot go in an emailNothing: it is removed automatically. If you want, delete it from the code
‘The code has no <body>…’Only part of an email has been pastedPaste the whole code, or write it with Write
‘The email is… KB’The email is very long or has a lot of codeRemove text or images: Gmail clips emails over 102 KB
The image is not uploadedIt is not JPG, PNG or GIF, it is a GIF over 1 MB, or it is over 8 MBSave it in another format or smaller
«The image was … and has been saved smaller»It was over 1 MB and Powergest has reduced itNothing: it is already in the email
‘Place the cursor in the text…’ when choosing a variableThere was nowhere to put itClick in the text where you want it and choose it again
‘The ZIP contains a path that goes outside its folder…’The ZIP has files with odd paths (../)Export it again from the tool where you made the email
‘The ZIP doesn’t contain any HTML page…’The ZIP does not have the email, only images or other filesExport the email as HTML with its images
‘The page links to images that aren’t in the ZIP…’The page uses images that were not put in the ZIPPut those images in the ZIP, or upload them and enter their address
‘Can’t delete: it’s used by…’ when deleting from the galleryAn email uses that imageRemove it from that email; the one in a newsletter already sent stays

How to prepare the rest of the template (subject, preview, test) is in how to design a template.

More about Mailing