Doc.send using local application

I have an database on my local workstation that uses send method to send emails to recipients. It works fine when server connection exists(Home/Mail server) but the goal of the app is to keep the email in lets say local mail.box and send the email as soon as the server connection is availble there by allowing the users to work offline. Currently the code breaks and says server connection not available.Please advise.

Thanks,

Durga Prasad

Subject: location doc

do you have your location doc set to indicate that you are using mail “on local”?

Subject: solved: Mail File Location set to Local

Till now i had it set to Server, glad none of the users use Notes Mail. But after i changed it to Local, It works. Thanks for your response.