We use tracking cookies to understand how you use the product and help us improve it. For more information on how we store cookies, read our  privacy policy.

Troubleshooting

Common email issues and solutions for Resend and Mailchimp integration

Common issues and solutions for email functionality.

Resend Issues

Mailchimp Issues

General Issues

Testing

Test Resend Locally

scripts/testResend.ts
import { resend } from '@/lib/resend/resend';

async function test() {
  const { data, error } = await resend.emails.send({
    from: 'Test <test@myapp.com>',
    to: 'your-email@example.com',
    subject: 'Test Email',
    html: '<p>Test</p>',
  });

  console.log('Data:', data);
  console.log('Error:', error);
}

test();

Test Mailchimp API

Terminal
curl -X POST \
  https://us6.api.mailchimp.com/3.0/lists/YOUR_AUDIENCE_ID/members \
  -u "anystring:YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email_address":"test@example.com","status":"subscribed"}'

Additional Resources

How is this guide ?

Last updated on