Sendgrid and Bubble API in Live

In my new Bubble app, I’m using SendGrid with the CoPilot SendGrid element to email notices of new blog posts. I’ve added the CNAME records to my DNS as per SendGrid’s direction. I’ve also followed all the steps setting up the API keys. The emails are sent via a backend workflow.

In Dev, everything works perfectly. Every email shows up immediately in the two mailboxes I’m using for testing (my own primary and secondary Gmail accounts). However, after I promoted to Live, only half the e-mails get through. The rest never arrive. I’ve looked at Bubble’s server logs and the whole process runs every time without errors including the step to communicate with SendGrid. But on the SendGrid side, those emails don’t even appear in the Activity Log. There’s also no record of anything being blocked. My SendGrid reputation is 100% with a 100% delivery rate. I notice in Bubble Settings, the API paths point to Dev. Unlike the rest of the Bubble environment, the API environment seems to be shared by Dev and Live.

Any clue as to what might be happening?

I solved my own problem. In Dev, it was working by fluke before I really understood how to construct the URL that I was putting into the body of my e-mail as a link OR how to extract and use data from the URL when the user opened the email and clicked on the link.