-
Notifications
You must be signed in to change notification settings - Fork 298
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
Added custom SMTP email server testing on the dashboard #376
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/emails/page-client.tsx
Outdated
Show resolved
Hide resolved
.vscode/settings.json
Outdated
@@ -53,6 +56,7 @@ | |||
"quetzallabs", | |||
"rehype", | |||
"reqs", | |||
"retryable", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not a word (the correct spelling is retriable, but canRetry is probably better anyways; see below)
"retryable", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export function isSecureEmailPort(port: number | string) { | ||
let parsedPort = parseInt(port.toString()); | ||
const secure = parsedPort === 465; | ||
return { secure }; | ||
return parsedPort === 465; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can't determine whether an SMTP server uses TLS or not just by the port (eg. it may be on a different port such as 587, 2525, 25025, etc). Also, 465 is not recommended anyways: https://www.mailgun.com/blog/email/which-smtp-port-understanding-ports-25-465-587/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a setting in the DB for TLS?
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/emails/page-client.tsx
Outdated
Show resolved
Hide resolved
…/emails/page-client.tsx Co-authored-by: Konsti Wohlwend <[email protected]>
Co-authored-by: Konsti Wohlwend <[email protected]>
Co-authored-by: Konsti Wohlwend <[email protected]>
Co-authored-by: Konsti Wohlwend <[email protected]>
…/emails/page-client.tsx Co-authored-by: Konsti Wohlwend <[email protected]>
Important
Add custom SMTP email server testing feature with backend error handling and frontend UI components.
send-test-email
route inroute.tsx
for handling test email requests.sendEmailWithKnownErrorTypes()
inemails.tsx
for error-handled email sending.isSecureEmailPort()
inemails.tsx
to check for secure ports.TestSendingDialog
andEditEmailServerDialog
inpage-client.tsx
for email server testing and configuration.FormDialog
inform-dialog.tsx
to handle form changes and prevent-close behavior.emailConfigSchema
inprojects.ts
to export schema.sendTestEmail()
method toStackAdminInterface
inadminInterface.ts
andstack-app.ts
.This description was created by for b6e7e09. It will automatically update as commits are pushed.