Multiple recipients visible in To field despite using MailGun SMTP batch sending

I’m having trouble with MailGun’s SMTP batch sending feature. Even though I’m using recipient variables and they’re working fine in the email content, all the recipients are still showing up in the To field for everyone.

I thought this wasn’t supposed to happen. I’ve set up my SMTP headers like this:

To: [email protected], [email protected]
X-Mailgun-Recipient-Variables: {
    "[email protected]": {
        "user_id": "abc123",
        "name": "User One"
    },
    "[email protected]": {
        "user_id": "def456",
        "name": "User Two"
    }
}

But when the emails arrive, both addresses are in the To field. Am I doing something wrong? I expected each recipient to only see their own email address in the To field.

Has anyone else run into this problem? Any ideas on how to fix it? I’d really appreciate some help figuring this out.

I encountered a similar issue when implementing batch sending with Mailgun. The solution lies in how you structure your SMTP headers. Instead of using the ‘To’ field for multiple recipients, you should use a single placeholder address in the ‘To’ field and list your actual recipients in the ‘Bcc’ field.

Here’s what worked for me:

To: [email protected]
Bcc: [email protected], [email protected]

This approach ensures each recipient only sees their own email address. The placeholder address in the ‘To’ field can be anything you choose, but it should be a valid email address you control. Remember to adjust your X-Mailgun-Recipient-Variables accordingly.

This method maintains privacy and prevents recipients from seeing each other’s email addresses, which is crucial for batch sending.

hey there! i’ve run into this too. turns out, you need to use the ‘Bcc’ field instead of ‘To’ for batch sending. try changing your headers to:

Bcc: [email protected], [email protected]

that should fix it. each recipient will only see their own address. hope this helps!

I’ve dealt with this exact problem before, and it can be quite frustrating. The key is to use the ‘Bcc’ field instead of ‘To’ for your recipients. Here’s what worked for me:

Set up a generic ‘To’ address like ‘[email protected]’ or something similar. Then put all your actual recipients in the ‘Bcc’ field. Your X-Mailgun-Recipient-Variables stay the same.

This approach keeps each recipient’s email private and prevents that annoying issue of everyone seeing all the addresses. It’s a simple change but makes a big difference in how your emails are received and perceived by the recipients.

Also, double-check your Mailgun account settings. Sometimes there are additional configurations needed to fully enable batch sending features. If you’re still having trouble after trying the Bcc method, it might be worth reaching out to Mailgun support directly. They can often spot configuration issues that aren’t immediately obvious.