Перейти к содержанию

HTML block

Этот контент еще не доступен на вашем языке.

Use the HTML block when the built-in blocks don’t cover what you need, such as a custom form, a survey, or an embedded video. Paste your HTML into the block, and it appears in the email as written.

Personalize the HTML

Anchor link to
  1. Click Merge tag above the code field and search your account’s Tags. The Merge Tag is inserted at the cursor position.
  2. Optional: click the emoji icon to insert an emoji the same way.
  3. Click an inserted Merge Tag to open the same Default / Format panel as in a Heading or Text block.
Anchor link to

To let recipients unsubscribe from inside your HTML, add a link with the %%PW_EMAIL_UNSUBSCRIBE%% placeholder:

<a href=%%PW_EMAIL_UNSUBSCRIBE%%>Unsubscribe</a>

The %%PW_EMAIL_UNSUBSCRIBE%% placeholder is replaced with the Pushwoosh unsubscribe URL when the email is sent.

Paste one of these examples into the HTML block and change the text and links to your own.

This example lays out an email field and a Get my code button for a New Year Sale promo. It doesn’t send the address anywhere: to collect addresses, connect it to your own form handler.

HTML lead form in the email editor with an email field and a Get my code button
HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body { margin: 0; padding: 20px; font-family: Arial, sans-serif; }
h2 { font-size: 18px; margin-bottom: 8px; color: #222; }
p { font-size: 14px; color: #666; margin-bottom: 20px; }
input {
width: 100%;
padding: 12px;
margin-bottom: 12px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 15px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 14px;
background: #CC0000;
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
}
</style>
</head>
<body>
<h2>Get your New Year Sale code</h2>
<p>Enter your email and we'll send you an exclusive promo code for up to 50% off.</p>
<div id="form">
<input type="email" placeholder="Your email address" />
<button type="button">Get my code</button>
</div>
</body>
</html>

This survey asks what category the recipient is shopping for and links each option to the relevant sale page.

HTML survey in the email editor asking what the user is shopping for with four category options
HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body { margin: 0; padding: 20px; font-family: Arial, sans-serif; text-align: center; }
h2 { font-size: 18px; margin-bottom: 6px; color: #222; }
p { font-size: 13px; color: #888; margin-bottom: 20px; }
.option {
display: block;
width: 100%;
padding: 14px;
margin-bottom: 10px;
background: #f5f5f5;
border: 2px solid transparent;
border-radius: 10px;
font-size: 15px;
cursor: pointer;
box-sizing: border-box;
text-decoration: none;
color: #222;
}
.option:hover { border-color: #CC0000; background: #fff5f5; }
</style>
</head>
<body>
<h2>What are you shopping for?</h2>
<p>Pick a category and go straight to your deals</p>
<a class="option" href="https://example.com/sale/clothing">👗 Clothing</a>
<a class="option" href="https://example.com/sale/electronics">📱 Electronics</a>
<a class="option" href="https://example.com/sale/beauty">💄 Beauty</a>
<a class="option" href="https://example.com/sale/home">🏠 Home & Living</a>
</body>
</html>

This example embeds a New Year Sale promo video in the email. Many email clients don’t play embedded video. To show a video every client can open, use the Video block: it adds a clickable thumbnail that opens the video.

HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
text-align: center;
}
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<h1>New Year Sale — Up to 50% Off</h1>
<div class="video-container">
<iframe src="https://www.youtube.com/embed/YOUR_VIDEO_ID"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</body>
</html>