market creation email

This commit is contained in:
mantikoros 2022-08-17 17:36:52 -05:00
parent ce3d092497
commit 159723ed0c
3 changed files with 420 additions and 568 deletions

View File

@ -1,11 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office" <head>
> <title>Manifold Market Creation Guide</title>
<head>
<title>(no subject)</title>
<!--[if !mso]><!--> <!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]--> <!--<![endif]-->
@ -15,18 +13,21 @@
#outlook a { #outlook a {
padding: 0; padding: 0;
} }
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
} }
table, table,
td { td {
border-collapse: collapse; border-collapse: collapse;
mso-table-lspace: 0pt; mso-table-lspace: 0pt;
mso-table-rspace: 0pt; mso-table-rspace: 0pt;
} }
img { img {
border: 0; border: 0;
height: auto; height: auto;
@ -35,6 +36,7 @@
text-decoration: none; text-decoration: none;
-ms-interpolation-mode: bicubic; -ms-interpolation-mode: bicubic;
} }
p { p {
display: block; display: block;
margin: 13px 0; margin: 13px 0;
@ -58,21 +60,9 @@
</style> </style>
<![endif]--> <![endif]-->
<!--[if !mso]><!--> <!--[if !mso]><!-->
<link <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css" />
href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" <link href="https://fonts.googleapis.com/css?family=Readex+Pro" rel="stylesheet" type="text/css" />
rel="stylesheet" <link href="https://fonts.googleapis.com/css?family=Readex+Pro" rel="stylesheet" type="text/css" />
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Readex+Pro"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Readex+Pro"
rel="stylesheet"
type="text/css"
/>
<style type="text/css"> <style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700); @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
@import url(https://fonts.googleapis.com/css?family=Readex+Pro); @import url(https://fonts.googleapis.com/css?family=Readex+Pro);
@ -104,35 +94,28 @@
table.mj-full-width-mobile { table.mj-full-width-mobile {
width: 100% !important; width: 100% !important;
} }
td.mj-full-width-mobile { td.mj-full-width-mobile {
width: auto !important; width: auto !important;
} }
} }
</style> </style>
</head> </head>
<body style="word-spacing: normal; background-color: #f4f4f4">
<body style="word-spacing: normal; background-color: #f4f4f4">
<div style="background-color: #f4f4f4"> <div style="background-color: #f4f4f4">
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--> <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
<div <div style="
style="
background: #ffffff; background: #ffffff;
background-color: #ffffff; background-color: #ffffff;
margin: 0px auto; margin: 0px auto;
max-width: 600px; max-width: 600px;
" ">
> <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
<table style="background: #ffffff; background-color: #ffffff; width: 100%">
align="center"
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="background: #ffffff; background-color: #ffffff; width: 100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td style="
style="
direction: ltr; direction: ltr;
font-size: 0px; font-size: 0px;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
@ -141,33 +124,21 @@
padding-right: 0px; padding-right: 0px;
padding-top: 0px; padding-top: 0px;
text-align: center; text-align: center;
" ">
>
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--> <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
<div <div class="mj-column-per-100 mj-outlook-group-fix" style="
class="mj-column-per-100 mj-outlook-group-fix"
style="
font-size: 0px; font-size: 0px;
text-align: left; text-align: left;
direction: ltr; direction: ltr;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 100%; width: 100%;
" ">
> <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align: top"
<table width="100%">
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="vertical-align: top"
width="100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td align="center" style="
align="center"
style="
font-size: 0px; font-size: 0px;
padding: 0px 25px 0px 25px; padding: 0px 25px 0px 25px;
padding-top: 0px; padding-top: 0px;
@ -175,29 +146,16 @@
padding-bottom: 0px; padding-bottom: 0px;
padding-left: 25px; padding-left: 25px;
word-break: break-word; word-break: break-word;
" ">
> <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="
<table
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0px; border-spacing: 0px;
" ">
>
<tbody> <tbody>
<tr> <tr>
<td style="width: 550px"> <td style="width: 550px">
<a <a href="https://manifold.markets/home" target="_blank"><img alt="" height="auto"
href="https://manifold.markets/home" src="https://03jlj.mjt.lu/img/03jlj/b/96u/omk8.gif" style="
target="_blank"
><img
alt=""
height="auto"
src="https://03jlj.mjt.lu/img/03jlj/b/96u/omk8.gif"
style="
border: none; border: none;
display: block; display: block;
outline: none; outline: none;
@ -205,9 +163,7 @@
height: auto; height: auto;
width: 100%; width: 100%;
font-size: 13px; font-size: 13px;
" " width="550" /></a>
width="550"
/></a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -224,26 +180,17 @@
</table> </table>
</div> </div>
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--> <!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
<div <div style="
style="
background: #ffffff; background: #ffffff;
background-color: #ffffff; background-color: #ffffff;
margin: 0px auto; margin: 0px auto;
max-width: 600px; max-width: 600px;
" ">
> <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
<table style="background: #ffffff; background-color: #ffffff; width: 100%">
align="center"
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="background: #ffffff; background-color: #ffffff; width: 100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td style="
style="
direction: ltr; direction: ltr;
font-size: 0px; font-size: 0px;
padding: 20px 0px 0px 0px; padding: 20px 0px 0px 0px;
@ -252,33 +199,34 @@
padding-right: 0px; padding-right: 0px;
padding-top: 20px; padding-top: 20px;
text-align: center; text-align: center;
" ">
>
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--> <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
<div <div class="mj-column-per-100 mj-outlook-group-fix" style="
class="mj-column-per-100 mj-outlook-group-fix"
style="
font-size: 0px; font-size: 0px;
text-align: left; text-align: left;
direction: ltr; direction: ltr;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 100%; width: 100%;
" ">
> <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align: top"
<table width="100%">
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="vertical-align: top"
width="100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td align="left"
align="left" style="font-size:0px;padding:10px 25px;padding-top:0px;padding-bottom:0px;word-break:break-word;">
style=" <div
style="font-family:Arial, sans-serif;font-size:18px;letter-spacing:normal;line-height:1;text-align:left;color:#000000;">
<p class="text-build-content"
style="line-height: 24px; margin: 10px 0; margin-top: 10px; margin-bottom: 10px;"
data-testid="4XoHRGw1Y"><span
style="color:#000000;font-family:Arial, Helvetica, sans-serif;font-size:18px;">
Hi {{name}},</span></p>
</div>
</td>
</tr>
<tr>
<td align="left" style="
font-size: 0px; font-size: 0px;
padding: 0px 25px 20px 25px; padding: 0px 25px 20px 25px;
padding-top: 0px; padding-top: 0px;
@ -286,311 +234,204 @@
padding-bottom: 20px; padding-bottom: 20px;
padding-left: 25px; padding-left: 25px;
word-break: break-word; word-break: break-word;
" ">
> <div style="
<div
style="
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
font-size: 17px; font-size: 17px;
letter-spacing: normal; letter-spacing: normal;
line-height: 1; line-height: 1;
text-align: left; text-align: left;
color: #000000; color: #000000;
" ">
> <p class="text-build-content" style="
<p
class="text-build-content"
style="
line-height: 23px; line-height: 23px;
margin: 10px 0; margin: 10px 0;
margin-top: 10px; margin-top: 10px;
" " data-testid="3Q8BP69fq">
data-testid="3Q8BP69fq" <span style="
>
<span
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">Congrats on creating your first market on <a class="link-build-content"
>On Manifold Markets, several important factors style="color: #55575d" target="_blank"
go into making a good question. These lead to href="https://manifold.markets">Manifold</a>!</span>
more people betting on them and allowing a more
accurate prediction to be formed!</span
>
</p> </p>
<p
class="text-build-content" <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
style="line-height: 23px; margin: 10px 0" data-testid="3Q8BP69fq">
data-testid="3Q8BP69fq" <span style="
>
&nbsp;
</p>
<p
class="text-build-content"
style="line-height: 23px; margin: 10px 0"
data-testid="3Q8BP69fq"
>
<span
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">The following is a short guide to creating markets.</span>
>Manifold also gives its creators 10 Mana for
each unique trader that bets on your
market!</span
>
</p> </p>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0"
data-testid="3Q8BP69fq"
>
&nbsp; &nbsp;
</p> </p>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0" <span style="
data-testid="3Q8BP69fq"
>
<span
style="
color: #292fd7; color: #292fd7;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 20px; font-size: 20px;
" "><b>What makes a good market?</b></span>
><b>What makes a good question?</b></span
>
</p> </p>
<ul> <ul>
<li style="line-height: 23px"> <li style="line-height: 23px; margin-bottom: 8px;">
<span <span
style=" style="font-family: Readex Pro, Arial, Helvetica, sans-serif;font-size: 17px;"><b>Interesting
font-family: Readex Pro, Arial, Helvetica, topic. </b>Manifold gives
sans-serif; creators M$10 for
font-size: 17px; each unique trader that bets on your
" market, so it pays to ask a question people are interested in!</span>
><b>Clear resolution criteria. </b>This is
needed so users know how you are going to
decide on what the correct answer is.</span
>
</li> </li>
<li style="line-height: 23px">
<span <li style="line-height: 23px; margin-bottom: 8px;">
style=" <span style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><b>Clear resolution criteria. </b>Any ambiguities or edge cases in your description
><b>Clear resolution date</b>. This is will drive traders away from your markets.</span>
sometimes slightly different from the closing
date. We recommend leaving the market open up
until you resolve it, but if it is different
make sure you say what day you intend to
resolve it in the description!</span
>
</li> </li>
<li style="line-height: 23px">
<span <li style="line-height: 23px; margin-bottom: 8px;">
style=" <span style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><b>Detailed description. </b>Include images/videos/tweets and any context or
><b>Detailed description. </b>Use the rich background
text editor to create an easy to read
description. Include any context or background
information that could be useful to people who information that could be useful to people who
are interested in learning more that are are interested in learning more that are
uneducated on the subject.</span uneducated on the subject.</span>
>
</li> </li>
<li style="line-height: 23px"> <li style="line-height: 23px; margin-bottom: 8px;">
<span <span style="
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><b>Add it to a group. </b>Groups are the
><b>Add it to a group. </b>Groups are the
primary way users filter for relevant markets. primary way users filter for relevant markets.
Also, consider making your own groups and Also, consider making your own groups and
inviting friends/interested communities to inviting friends/interested communities to
them from other sites!</span them from other sites!</span>
>
</li> </li>
<li style="line-height: 23px"> <li style="line-height: 23px; margin-bottom: 8px;">
<span <span style="
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><b>Share it on social media</b>. You'll earn the <a class="link-build-content"
><b>Bonus: </b>Add a comment on your style="color: inherit; text-decoration: none" target="_blank"
prediction and explain (with links and href="https://manifold.markets/referrals"><span style="
sources) supporting it.</span color: #55575d;
> font-family: Readex Pro, Arial, Helvetica,
sans-serif;
font-size: 17px;
"><u>M$500
referral bonus</u></span></a> if you get new users to sign up!</span>
</li> </li>
</ul> </ul>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0"
data-testid="3Q8BP69fq"
>
&nbsp; &nbsp;
</p> </p>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0" <span style="
data-testid="3Q8BP69fq"
>
<span
style="
color: #292fd7; color: #292fd7;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 20px; font-size: 20px;
" "><b>Examples of markets you should
><b emulate!&nbsp;</b></span>
>Examples of markets you should
emulate!&nbsp;</b
></span
>
</p> </p>
<ul> <ul>
<li style="line-height: 23px"> <li style="line-height: 23px">
<a <a class="link-build-content" style="color: inherit; text-decoration: none"
class="link-build-content"
style="color: inherit; text-decoration: none"
target="_blank" target="_blank"
href="https://manifold.markets/DavidChee/will-our-upcoming-twitch-bot-be-a-s" href="https://manifold.markets/DavidChee/will-our-upcoming-twitch-bot-be-a-s"><span
><span
style=" style="
color: #55575d; color: #55575d;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><u>This complex market</u></span></a><span style="
><u>This complex market</u></span
></a
><span
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">
> about the project I am working on.</span>
about the project I am working on.</span
>
</li> </li>
<li style="line-height: 23px"> <li style="line-height: 23px">
<a <a class="link-build-content" style="color: inherit; text-decoration: none"
class="link-build-content"
style="color: inherit; text-decoration: none"
target="_blank" target="_blank"
href="https://manifold.markets/SneakySly/will-manifold-reach-1000-weekly-act" href="https://manifold.markets/SneakySly/will-manifold-reach-1000-weekly-act"><span
><span
style=" style="
color: #55575d; color: #55575d;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><u>This simple market</u></span></a><span style="
><u>This simple market</u></span
></a
><span
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">
>
about Manifold&apos;s weekly active about Manifold&apos;s weekly active
users.</span users.</span>
>
</li> </li>
</ul> </ul>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0"
data-testid="3Q8BP69fq"
>
&nbsp; &nbsp;
</p> </p>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0" <span style="
data-testid="3Q8BP69fq"
>
<span
style="
color: #000000; color: #000000;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">Why not </span>
>Why not </span>
<a <a class="link-build-content" style="color: inherit; text-decoration: none" target="_blank"
class="link-build-content" href="https://manifold.markets/create"><span style="
style="color: inherit; text-decoration: none"
target="_blank"
href="https://manifold.markets/create"
><span
style="
color: #55575d; color: #55575d;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" "><u>create another market</u></span></a><span style="
><u>create a market</u></span
></a
><span
style="
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">
>
while it is still fresh on your mind? while it is still fresh on your mind?
</p> </p>
<p <p class="text-build-content" style="line-height: 23px; margin: 10px 0"
class="text-build-content" data-testid="3Q8BP69fq">
style="line-height: 23px; margin: 10px 0" <span style="
data-testid="3Q8BP69fq"
>
<span
style="
color: #000000; color: #000000;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">Thanks for reading!</span>
>Thanks for reading!</span
>
</p> </p>
<p <p class="text-build-content" style="
class="text-build-content"
style="
line-height: 23px; line-height: 23px;
margin: 10px 0; margin: 10px 0;
margin-bottom: 10px; margin-bottom: 10px;
" " data-testid="3Q8BP69fq">
data-testid="3Q8BP69fq" <span style="
>
<span
style="
color: #000000; color: #000000;
font-family: Readex Pro, Arial, Helvetica, font-family: Readex Pro, Arial, Helvetica,
sans-serif; sans-serif;
font-size: 17px; font-size: 17px;
" ">David from Manifold</span>
>David from Manifold</span
>
</p> </p>
</div> </div>
</td> </td>
@ -606,118 +447,73 @@
</div> </div>
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--> <!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
<div style="margin: 0px auto; max-width: 600px"> <div style="margin: 0px auto; max-width: 600px">
<table <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width: 100%">
align="center"
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="width: 100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td style="
style="
direction: ltr; direction: ltr;
font-size: 0px; font-size: 0px;
padding: 0 0 20px 0; padding: 0 0 20px 0;
text-align: center; text-align: center;
" ">
>
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--> <!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
<div style="margin: 0px auto; max-width: 600px"> <div style="margin: 0px auto; max-width: 600px">
<table <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
align="center" style="width: 100%">
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
style="width: 100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td style="
style="
direction: ltr; direction: ltr;
font-size: 0px; font-size: 0px;
padding: 20px 0px 20px 0px; padding: 20px 0px 20px 0px;
text-align: center; text-align: center;
" ">
>
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--> <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
<div <div class="mj-column-per-100 mj-outlook-group-fix" style="
class="mj-column-per-100 mj-outlook-group-fix"
style="
font-size: 0px; font-size: 0px;
text-align: left; text-align: left;
direction: ltr; direction: ltr;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 100%; width: 100%;
" ">
> <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
width="100%"
>
<tbody> <tbody>
<tr> <tr>
<td style="vertical-align: top; padding: 0"> <td style="vertical-align: top; padding: 0">
<table <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
width="100%"
>
<tbody> <tbody>
<tr> <tr>
<td <td align="center" style="
align="center"
style="
font-size: 0px; font-size: 0px;
padding: 10px 25px; padding: 10px 25px;
word-break: break-word; word-break: break-word;
" ">
> <div style="
<div
style="
font-family: Ubuntu, Helvetica, Arial, font-family: Ubuntu, Helvetica, Arial,
sans-serif; sans-serif;
font-size: 11px; font-size: 11px;
line-height: 22px; line-height: 22px;
text-align: center; text-align: center;
color: #000000; color: #000000;
" ">
>
<p style="margin: 10px 0"> <p style="margin: 10px 0">
This e-mail has been sent to {{name}}, This e-mail has been sent to {{name}},
<a <a href="{{unsubscribeLink}}" style="
href="{{unsubscribeLink}}"
style="
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
" " target="_blank">click here to unsubscribe</a>.
target="_blank"
>click here to unsubscribe</a
>.
</p> </p>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td <td align="center" style="
align="center"
style="
font-size: 0px; font-size: 0px;
padding: 10px 25px; padding: 10px 25px;
word-break: break-word; word-break: break-word;
" "></td>
></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -734,5 +530,6 @@
</div> </div>
<!--[if mso | IE]></td></tr></table><![endif]--> <!--[if mso | IE]></td></tr></table><![endif]-->
</div> </div>
</body> </body>
</html> </html>

View File

@ -236,6 +236,37 @@ export const sendOneWeekBonusEmail = async (
) )
} }
export const sendCreatorGuideEmail = async (
user: User,
privateUser: PrivateUser
) => {
if (
!privateUser ||
!privateUser.email ||
privateUser.unsubscribedFromGenericEmails
)
return
const { name, id: userId } = user
const firstName = name.split(' ')[0]
const emailType = 'generic'
const unsubscribeLink = `${UNSUBSCRIBE_ENDPOINT}?id=${userId}&type=${emailType}`
return await sendTemplateEmail(
privateUser.email,
'Market creation guide',
'creating-market',
{
name: firstName,
unsubscribeLink,
},
{
from: 'David from Manifold <david@manifold.markets>',
}
)
}
export const sendThankYouEmail = async ( export const sendThankYouEmail = async (
user: User, user: User,
privateUser: PrivateUser privateUser: PrivateUser

View File

@ -1,12 +1,17 @@
import * as functions from 'firebase-functions' import * as functions from 'firebase-functions'
import { getUser } from './utils' import * as admin from 'firebase-admin'
import { getPrivateUser, getUser } from './utils'
import { createNotification } from './create-notification' import { createNotification } from './create-notification'
import { Contract } from '../../common/contract' import { Contract } from '../../common/contract'
import { parseMentions, richTextToString } from '../../common/util/parse' import { parseMentions, richTextToString } from '../../common/util/parse'
import { JSONContent } from '@tiptap/core' import { JSONContent } from '@tiptap/core'
import { User } from 'common/user'
import { sendCreatorGuideEmail } from './emails'
export const onCreateContract = functions.firestore export const onCreateContract = functions
.document('contracts/{contractId}') .runWith({ secrets: ['MAILGUN_KEY'] })
.firestore.document('contracts/{contractId}')
.onCreate(async (snapshot, context) => { .onCreate(async (snapshot, context) => {
const contract = snapshot.data() as Contract const contract = snapshot.data() as Contract
const { eventId } = context const { eventId } = context
@ -26,4 +31,23 @@ export const onCreateContract = functions.firestore
richTextToString(desc), richTextToString(desc),
{ contract, recipients: mentioned } { contract, recipients: mentioned }
) )
await sendGuideEmail(contractCreator)
}) })
const firestore = admin.firestore()
const sendGuideEmail = async (contractCreator: User) => {
const query = await firestore
.collection(`contracts`)
.where('creatorId', '==', contractCreator.id)
.limit(2)
.get()
if (query.size >= 2) return
const privateUser = await getPrivateUser(contractCreator.id)
if (!privateUser) return
await sendCreatorGuideEmail(contractCreator, privateUser)
}