Can anyone test the following, or something similar, to see if you can get the "cannot send email" message? I put my iPad into airplane mode which presumably would make it ineligible to send mail but the "else" part of this clause was not triggered. I don't have a device handy that has absolutely no email capability. The dictionary is not helpful in this regard because it does not indicate what constitutes having the ability to send email (ie. what the test is actually testing).
on mouseUp
if mobilecansendmail() is true then
go card "export"
else
answer "This device cannot send email at the present time" with "Ok"
end if
end mouseUp
I believe that the check is whether the machine has the capability to send and email. When you go into airplane mode is only turns off access to the outside world via WiFi, phone, internet, etc. So the capability is still there but the ability is turned off.
Tom's right, what you want is to check for a working Internet connection. The easiest way is to get a known url, like the Google search page or a small file on your own server, and see if you get an error.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
jacque wrote:Tom's right, what you want is to check for a working Internet connection. The easiest way is to get a known url, like the Google search page or a small file on your own server, and see if you get an error.
But what if the user does not have a functioning email account setup ie. is not capable of sending an email from the device?