Simple email question

I am wanting to create an email based on an event I am using an ESP8266 with Iphone running IOS11.

My code works as expected as long as the Blynk app is running on my phone, but not when the app is closed.

Is there a way to have the hardware send an email even when the ap is closed?

Yes, email should be send even if App is not connected. If you share your code we can be more helpful.

Are you connected using Bluetooth?