MCPcopy Index your code
hub / github.com/simstudioai/sim / getFromEmailAddress

Function getFromEmailAddress

apps/sim/lib/messaging/email/utils.ts:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 * Get the from email address, preferring FROM_EMAIL_ADDRESS over EMAIL_DOMAIN
14 */
15export function getFromEmailAddress(): string {
16 if (env.FROM_EMAIL_ADDRESS?.trim()) {
17 return env.FROM_EMAIL_ADDRESS
18 }
19 // Fallback to constructing from EMAIL_DOMAIN
20 return `noreply@${env.EMAIL_DOMAIN || getEmailDomain()}`
21}
22
23/**
24 * Extract the email address from a "Name <email>" formatted string"

Callers 11

utils.test.tsFile · 0.90
validateAndSanitizeFunction · 0.90
auth.tsFile · 0.90
sendInvitationEmailFunction · 0.90
sendWorkspaceAddedEmailFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
getPersonalEmailFromFunction · 0.85

Calls 1

getEmailDomainFunction · 0.90

Tested by

no test coverage detected