showPopupEmail() - return status & modal issues

DON’T EVEN ASK - SOMETIMES I DO STUPID THINGS: FORGET THIS POST

I’m sending reports, email and attacmnets via the following code:

– aEmail has the requisite params for the ()

local mailStatus = showPopupEmail(aEmail)

if mailStatus == nil then

– SENT

else

– CANCEL

end

FIRST ISSUE

ShowPopUp() does not seem to be modal to the extent that the rest of the function which called showpopUp() had been run and RETURN encountered. what i know happened is that eve if I CANCEL on the iPhone, the code below executes to the RETURN statement. in essence, mailStatus = nil occurs always.

SECOND ISSUE

Since showPopUp() does not seem to be modal, mailStatus looks like it may always be nil, even when the User cancels the email. This is critical for me as I want to update records that an Invoice was issued - and don’t want to do the update if the invoice is not emailed.

Thanks for any hints on how to capture a valid mailStatus - or do I need an eventListener() of some type.

seth