- What does this package actually do? Does it replace Mailcoach’s built-in SendGrid integration?
- This package focuses solely on preparing your SendGrid account for Mailcoach’s workflows, including API key setup, domain verification, and webhook configuration for feedback loops (like bounces and clicks). It does not replace Mailcoach’s core SendGrid integration—it’s a complementary setup tool. If Mailcoach already has SendGrid support, this package simplifies the initial configuration steps.
- Do I need a paid SendGrid plan to use this with Mailcoach?
- The package itself doesn’t enforce plan requirements, but Mailcoach’s bulk email campaigns may need a SendGrid plan with higher limits (e.g., Essential or Pro) to avoid rate restrictions. Check SendGrid’s [volume pricing](https://sendgrid.com/pricing/) and Mailcoach’s [documentation](https://mailcoach.app/docs) for specifics. The free tier may work for small campaigns but could trigger throttling.
- How do I install this package? Does it work with Laravel 10?
- Install via Composer: `composer require spatie/laravel-mailcoach-sendgrid-setup`. The package likely supports Laravel 10, but since it was last updated in 2023, test thoroughly. Ensure Mailcoach is installed first—this package isn’t standalone. Follow Mailcoach’s docs for post-installation steps, as this package lacks its own detailed guide.
- What SendGrid API version does this package use? Will it break if SendGrid changes their API?
- The package uses SendGrid’s v3 API, which is stable but not future-proof. If SendGrid deprecates v3 or changes endpoints, you’d need to update the package or fork it. Since it’s undocumented, monitor [SendGrid’s API changelog](https://sendgrid.com/developer/apis/changelog/) and Mailcoach’s updates for compatibility risks.
- Does this package handle webhook feedback loops (bounces, clicks) automatically?
- Yes, it registers routes to process SendGrid’s feedback webhooks (e.g., bounces, spam reports) and integrates them with Mailcoach’s workflows. However, reliability depends on your Laravel queue system (if using async processing) and SendGrid’s uptime. There’s no built-in retry logic for failed webhook deliveries, so monitor Laravel’s logs for errors.
- Can I use custom domains with SendGrid through this package?
- Yes, the package supports domain verification for custom domains in SendGrid. You’ll need to configure DNS records (e.g., SPF, DKIM) separately via SendGrid’s dashboard. The package doesn’t automate this—it only validates the setup during Mailcoach’s SendGrid integration. Follow [SendGrid’s domain setup guide](https://sendgrid.com/docs/for-developers/sending-email/sender-verification/) for prerequisites.
- Will this package work with Mailcoach’s open tracking or A/B testing features?
- The package doesn’t explicitly document support for Mailcoach’s advanced features like open tracking or A/B testing. These likely rely on SendGrid’s native capabilities (e.g., unique tracking links, API endpoints for campaign management). Check Mailcoach’s docs to confirm if this package is required for those features or if they work independently.
- How do I handle rate limits if I’m sending bulk emails with Mailcoach?
- SendGrid’s free tier has strict rate limits (e.g., 100 emails/day), which may throttle bulk campaigns. This package doesn’t include rate-limit management, but you can adjust SendGrid’s [sending limits](https://sendgrid.com/docs/for-developers/sending-email/sending-limits/) manually. For large volumes, upgrade to a paid plan or implement exponential backoff in your Laravel queues.
- Is there any testing or error handling for production use?
- The package lacks tests or production-grade error handling. Critical failures (e.g., API key rejection, webhook timeouts) may not be gracefully handled. Test in a staging environment by simulating SendGrid webhooks (using tools like [ngrok](https://ngrok.com/)) and monitor Laravel’s `failed_jobs` table for queue-related issues.
- What are the alternatives? Should I just use Mailcoach’s built-in SendGrid driver or the spatie/laravel-sendgrid-driver package?
- If Mailcoach already includes SendGrid support, this package is optional—it’s primarily for setup tasks. For full SendGrid integration outside Mailcoach, consider `spatie/laravel-sendgrid-driver`, which offers more features (e.g., email sending, templates). However, this package is lighter and Mailcoach-specific, so use it only if you need its niche setup functionality.