Skip to content

Instantly share code, notes, and snippets.

@dotdoom
Created December 7, 2018 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotdoom/c9201f50e82b5c5882b32e6c1ea3d898 to your computer and use it in GitHub Desktop.
Save dotdoom/c9201f50e82b5c5882b32e6c1ea3d898 to your computer and use it in GitHub Desktop.
URI schemes for sending emails (iOS)
import 'dart:core';
void main() {
final commonOptions = {
'subject': 'test',
'body': 'foobar',
};
print(Uri(scheme: 'mailto', path: 'mail@example.com', queryParameters: commonOptions));
print(Uri(scheme: 'googlegmail', host: '', path: '/co', queryParameters: {
'to': 'mail@example.com',
}..addAll(commonOptions)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment