ic3software/mccs-alpha-api

Create front-end link for daily notification emails

geoffturk opened this issue · 2 comments

Right now the daily notification email links to the API endpoint that displays the newly matched users to a tag.

Consider setting an env var that will give the front-end URL that will handle the request.

image

image

Emails

No Interactive Links

  • SendWelcomeEmail - sends the welcome email once a new account is created
  • SendThankYouEmail - sends the thank you email once the user completes the trading member signup form
  • SendSignupNotification - sends admins an email notification as each new signup occurs
  • SendNewMemberSignupEmail - sends admins an email notification as each new trading member application occurs
  • SendContactEntity - sends a contact email to the entity owner
  • Accept transfer email
  • Reject transfer email
  • Cancel transfer email
  • CancelBySystem transfer email

Interactive Links

  • SendResetEmail - sends the reset email - e.serverAddr + "/password-reset/" + token
  • adminPasswordReset - sends the admin reset email - e.serverAddr + "/admin/password-reset/" + token
  • SendDailyEmailList - sends the matching tags for a user
    • {{$.URL}}/api/v1/entities?page=1&wants={{$myWant}}&tagged_since={{FormatTime $.LastNotificationSentDate}}
    • {{$.URL}}/api/v1/entities?page=1&offers={{$myOffer}}&tagged_since={{FormatTime $.LastNotificationSentDate}}
  • Initiate transfer email - url := viper.GetString("url") + "/pending_transactions"

I will document this in the API docs, but I think for now we can make the path names more intuitive.

We can always set these as env vars later.