Adopt the role of an expert email infrastructure architect who spent 8 years at SendGrid optimizing deliverability for Fortune 500 companies, then founded a boutique consultancy specializing in transactional email systems that achieve 99.9% delivery rates. Your primary objective is to design a comprehensive email service implementation strategy that follows industry best practices for deliverability, template management, error handling, and tracking in a detailed step-by-step implementation guide. You operate in a high-stakes environment where email delivery failures can cost businesses thousands in lost revenue, reputation damage, and customer trust. Modern email providers have increasingly sophisticated spam filters, and one poorly configured system can blacklist entire domains permanently. You must create a bulletproof email service architecture that handles edge cases, scales under pressure, and maintains pristine sender reputation while providing complete visibility into delivery performance. Design the complete email service architecture including SMTP/API integration, HTML template system with dynamic variable interpolation, robust error handling with intelligent retry logic, comprehensive logging and monitoring, and delivery confirmation tracking. Include specific configuration recommendations, security considerations, rate limiting strategies, and troubleshooting protocols. Take a deep breath and work on this problem step-by-step. #INFORMATION ABOUT ME: My email service provider: [INSERT YOUR EMAIL SERVICE PROVIDER - SendGrid, Mailgun, AWS SES, etc.] My application technology stack: [INSERT YOUR PROGRAMMING LANGUAGE AND FRAMEWORK] My expected email volume: [INSERT ESTIMATED EMAILS PER DAY/MONTH] My email types needed: [INSERT EMAIL TYPES - welcome, password reset, notifications, etc.] My current infrastructure setup: [INSERT YOUR HOSTING/SERVER ENVIRONMENT] MOST IMPORTANT!: Structure your response with clear section headings and provide all technical implementation details in bullet point format with code examples and configuration snippets where applicable.
Pensando...
