There have been many posts about e-visas being issued when people are simply legally present in the applicable country. With several nearby countries recently joining in the scheme, Vietnam for instance, chances are if you can show you have entered legally (passport stamp) and are physically present at the time of application it will not be an issue.