Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: STUD-196 Implement "Released" email notification #505

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,7 @@ internal class SongRepositoryImpl(

MintingStatus.Released -> {
logger.info { "Released song $songId SUCCESS!" }
// TODO: Maybe send an email once the song is live on spotify.
// sendMintingNotification("released", songId)
sendMintingNotification("released", songId)
}

else -> Unit
Expand Down
70 changes: 70 additions & 0 deletions newm-server/src/main/mjml/email/mint-released.mjml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<mjml>
<mj-head>
<mj-preview>Now available on all major streaming platforms</mj-preview>
<mj-font name="Inter" href="https://fonts.googleapis.com/css?family=Inter:500,700" />
<mj-attributes>
<mj-section padding="0 40px" />
<mj-column padding="0 0" />
<mj-image padding="0 0" />
<mj-text padding="0 0" />
<mj-social padding="0px 0px" border-radius="0" />
<mj-social-element padding="20px 40px" border-radius="0" />
<mj-class name="separator1" height="1px" container-background-color="var(--gradients-gradient-music, linear-gradient(53deg, #C341F0 0%, #F53C69 100%))" />
<mj-class name="separator2" height="1px" container-background-color="var(--greys-grey-400, #2C2C2E)" />
</mj-attributes>
</mj-head>
<mj-body background-color="#000" width="800px">
<mj-section>
<mj-column>
<mj-image padding-top="100px" width="150px" align="left" src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/j0hw1ggc1damiefj0uju" />
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-text padding-top="24px" color="#FFF" align="left" font-family="Inter,sans-serif" font-size="14px" font-style="normal" font-weight="500" line-height="18px">
Congrats {owner}! Your track has been officially released and can now be found on all major streaming platforms.<br><br>
"{song}"<br>
<ul style="padding-left:0;list-style-position:inside">{collabs}</ul>
</mj-text>
<mj-text padding-top="24px" color="#FFF" align="left" font-family="Inter,sans-serif" font-size="14px" font-style="normal" font-weight="500" line-height="18px">
Now that your song has been minted, distributed and released, it will begin accruing royalties for every stream. Please note that NEWM has no control over royalty distribution and timelines from third-party music streaming platforms. We recommend consulting each platform&#8217;s terms and conditions for more information on their royalty distribution policies.<br><br>
All earnings, including streaming royalties, can be viewed in the wallet tab on your NEWM Studio account. Once your royalties are available, simply select "Claim now" to transfer your earnings to your designated external wallet.<br><br>
<span style="font-weight:700;">Please note that release times vary across different streaming platforms. However, if your song is still not listed on a particular streaming platform more than two days past your set release date,</span>
or if you have any questions about the release process, please email <a href="mailto:[email protected]" style="color: #8E8E93">[email protected]</a> for assistance.<br><br>
Cheers, The NEWM Team<br><br>
</mj-text>
<mj-text padding="40px 0 60px 0" color="#636366" align="center" font-family="Inter,sans-serif" font-size="14px" font-style="normal" font-weight="500" line-height="18px">
PLEASE DO NOT REPLY TO THIS MESSAGE
</mj-text>
<mj-spacer mj-class="separator1" />
</mj-column>
</mj-section>
<mj-section padding="0 0">
<mj-column>
<mj-social padding-top="40px" icon-size="24px">
<mj-social-element src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/uguj3in5g8hg4ofrzdwq" href="https://t.me/NEWMofficial" />
<mj-social-element src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/aqvu7wjkpymijdbjovhf" href="https://twitter.com/projectNEWM" />
<mj-social-element src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/f8u1zdg6osweqmioeesl" href="https://discord.com/invite/z4sYqxqgvQ" />
<mj-social-element src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/at5dxsfeqpy30snybkw1" href="https://instagram.com/projectnewm.io" />
<mj-social-element src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/l5w03sjsdw0bt0qpst8f" href="https://github.com/projectNEWM" />
<mj-social-element src="https://res.cloudinary.com/newm/image/upload/f_auto,q_auto/v1/newmserver-emails/vmvrwooaithktecqjd6p" href="https://www.youtube.com/channel/UCcsBNWGjIf8YarD9uaZEEvw" />
</mj-social>
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-text padding="20px 0 53px 0" color="#FFF" align="center" font-family="Inter,sans-serif" font-size="14px" font-style="normal" font-weight="500" line-height="18px">
Join our community on <a href="https://discord.com/invite/z4sYqxqgvQ" style="color: #DC3CAA;text-decoration: none;font-weight: 700">Discord</a>!
</mj-text>
<mj-spacer mj-class="separator2" />
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-text padding="40px 0 62px 0" color="#636366" align="center" font-family="Inter,sans-serif" font-size="12px" font-style="italic" font-weight="500" line-height="18px">
Copyright &copy; 2023 NEWM, All rights reserved
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
5 changes: 5 additions & 0 deletions newm-server/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ mintingNotifications {
messageUrl = "/email/mint-declined.html"
messageUrl = ${?EMAIL_MINT_DECLINED_MESSAGE_URL}
}
released {
subject = "[IMPORTANT] Your song has been released!"
messageUrl = "/email/mint-released.html"
messageUrl = ${?EMAIL_MINT_RELEASED_MESSAGE_URL}
}
}

nftCdn {
Expand Down
Loading
Loading