Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #466 from RTradeLtd/email
Browse files Browse the repository at this point in the history
Better Welcome Email
  • Loading branch information
bonedaddy authored Apr 3, 2020
2 parents 8edc453 + f71644f commit 45dafce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
24 changes: 22 additions & 2 deletions api/v2/routes_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,33 @@ func (api *API) handleUserCreate(c *gin.Context, forms map[string]string, create
// format a link tag
link := fmt.Sprintf("<a href=\"%s\">link</a>", url)
emailSubject := fmt.Sprintf(
"%s Temporal Email Verification", forms["organization_name"],
"%s Welcome To Temporal 🌌 Read This For Crucial Getting Started Tips", forms["organization_name"],
)
// build email message
es := queue.EmailSend{
Subject: emailSubject,
Content: fmt.Sprintf(
"please click this %s to activate temporal email functionality", link,
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
"Thanks for signing up with Temporal, before you get started it's important we discuss our pinning system.\n",
"When uploading to Temporal you must specify a \"hold time\" which tells our system how long your data should be around for.\n",
"When you're using Temporal via the playground, or the API directly you can configure this for up to 24 months with paid accounts, and up to 1 month for free accounts.\n",
"Temporal’s free tier offers 3GB of storage on the house, paid tier rates are just $0.07/GB and partner tier rates are $0.05/GB.\n",
"<br>",
"<br>",
"When using Temporal through third-party implementations like our IPFS HTTP API reverse proxy, or the ENS management app, we use a default hold time of 1 month.\n",
"For example if you used the ENS management app to upload your website, and want it to stick around for longer than 1 month you need to extend your pin.\n",
"Pin extension can be done via the <a href=\"https://play2.temporal.cloud\">Temporal Playground</a> or via the API.\n",
"<br>",
"<br>",
"Lastly let's talk about emails! We try our best to not spam your inbox, so we limit emails to a few things: payment notifications, pin expiration warnings, password/username retrieval and processing failures.\n",
"But before we do this, you must validate your email. Note that email validation is not required unless you want these notifications\n",
"To validate your email, just click the following "+link+"\n",
"<br>",
"<br>",
"Questions, comments, concerns, or just feeling talkative? Join us on Telegram where you can receive live support and updates: <a href=\"https://t.me/RTradeTEMPORAL\">click here</a>\n",
"<br>",
"<br>",
"Thanks for signing up!",
),
ContentType: "text/html",
UserNames: []string{user.UserName},
Expand Down

0 comments on commit 45dafce

Please sign in to comment.