MuseMVP

MuseMVP Base: Node와 Cloudflare용 Next.js. MuseMVP Flare: 모두 Cloudflare에서 실행되는 AI SaaS 템플릿. 인증, 결제, 관리자 화면 포함.

제품
  • 홈
  • 가격
  • 템플릿
자료
  • 문서
  • 블로그
  • 변경 기록
법적 고지
  • 개인정보
  • 이용약관
  • 커뮤니티
Open-Launch Top 1 Daily WinnerOpen-Launch Top 1 Daily WinnerVerified DR - Verified Domain Rating for musemvp.comVerified DR - Verified Domain Rating for musemvp.comMuseMVP - Featured on Startup FameMuseMVP - Featured on Startup FameFazier badgeFazier badgeLiftOff award badgeLiftOff award badge

© 2026 MuseMVP. All rights reserved.

MuseMVP
  • 가격
  • 문서
  • 블로그
  • 변경 기록
MuseMVP Base 구매
MuseMVP 문서
MuseMVP 문서
OverviewTech StackQuick Start
Project Structure
EmailObject Storage
Internationalization
SEOAnalytics

이 페이지는 아직 선택한 언어로 번역되지 않아 English 원문을 표시합니다.

원문 보기 (English)

Email

Send your first verification email, configure your sender, and customize email templates.

Email enables registration codes, OTP sign-in, password recovery, and contact messages. Configure a real provider when you want these messages delivered to an inbox.

Before You Start

Have a running local app, a test inbox, and a sending domain you can verify. Use Cloudflare Email Sending; Workers production does not support Resend or console delivery. Locally, MAIL_PROVIDER=console prints mail in the dev server terminal. Provider limits depend on your account.

1. Connect Your Provider

Cloudflare Email Sending

Configure a sending domain and obtain an API token with the required email-sending access for your account. Set these values in apps/web-cloudflare/.env.local and .dev.vars:

MAIL_PROVIDER="cloudflare"
CLOUDFLARE_ACCOUNT_ID="YOUR_ACCOUNT_ID"
CLOUDFLARE_API_TOKEN="YOUR_EMAIL_SENDING_TOKEN"
MAIL_FROM="Acme <[email protected]>"
MAIL_FROM_NEWSLETTER="Acme <[email protected]>"
CONTACT_FORM_TO="[email protected]"
NEXT_PUBLIC_EMAIL_SUPPORT="[email protected]"

Set the same server credentials on your production host. Set the same server credentials on your production host before launch.

2. Receive Your First Email

Restart the dev server. Open the login page and request an email sign-in code for an account you control, or use password recovery for an existing account. Check the inbox and spam folder, then finish that flow with the received code.

Check Your Result

  • The email arrives with your sender address, product name, and expected language.
  • The code completes the intended sign-in or reset flow.
  • A contact-form message reaches CONTACT_FORM_TO.
  • Newsletter confirmation and signed unsubscribe links work if you use the newsletter feature.

Common Problems

ProblemFix
No message in the inboxCheck server errors, provider logs, and spam
Provider rejects the senderVerify the sending domain and token permissions; use a sender on that domain
Workers works locally but not in productionCheck deployed secrets and MAIL_PROVIDER=cloudflare; .dev.vars is not a production secrets store
Links point to localhostSet the deployment's NEXT_PUBLIC_SITE_URL to your HTTPS origin and rebuild

Customize the Email

Edit shared React Email templates under packages/mail/src/templates/. Current template IDs are emailVerification, magicLink, newsletterSignup, verificationCode, verificationCodeSignin, and verificationCodeForgotPassword.

Preview them with:

pnpm --filter @musemvp/cloudflare exec email dev --dir ../../packages/mail/src/templates --port 4100

Open http://localhost:4100. Use this explicit directory: the current root mail:preview script still points at the previous template location.

For a new template, register its ID and add mail.<templateId>.subject in both locales' packages/i18n/src/translations/{en,zh}/mvp.json. Package code uses relative or package imports, not app @/ imports.

From app server code, call:

import { sendEmail } from "@/modules/mail";

await sendEmail({
  to: user.email,
  locale,
  templateId: "verificationCodeSignin",
  context: { otp, expiresIn: 300 },
});

user, locale, and otp come from your server flow. sendEmail() also supports raw subject / html / text. To add a welcome email, create a template and connect it to your chosen event; it is not an existing default template. Preview checks appearance, not delivery.

Waffo Pancake

Configure the Waffo Pancake gateway.

Object Storage

Connect object storage, upload an avatar, and check your asset list.

이 페이지

Before You Start1. Connect Your ProviderCloudflare Email Sending2. Receive Your First EmailCheck Your ResultCommon ProblemsCustomize the Email

한 번만 결제. 세금 포함.

MuseMVP Base

Node용과 Cloudflare용 Next.js. 인증, 결제, 관리자 화면 포함.

$69

MuseMVP Base 구매