Skip to content

Commit a0c27cb

Browse files
author
Sergey Khomushin
committed
README.md: re-format code example
1 parent 14bc5fe commit a0c27cb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ Map<String, dynamic> templateParams = {
4141
};
4242
4343
try {
44-
await EmailJS.send('<YOUR_SERVICE_ID>','<YOUR_TEMPLATE_ID>', templateParams, '<YOUR_PUBLIC_KEY>');
44+
await EmailJS.send(
45+
'<YOUR_SERVICE_ID>',
46+
'<YOUR_TEMPLATE_ID>',
47+
templateParams,
48+
'<YOUR_PUBLIC_KEY>',
49+
);
4550
print('SUCCESS!');
4651
} catch (error) {
4752
print(error.toString());
@@ -57,7 +62,10 @@ EmailJS.init('<YOUR_PUBLIC_KEY>');
5762
5863
try {
5964
// send the email without dynamic variables
60-
await EmailJS.send('<YOUR_SERVICE_ID>','<YOUR_TEMPLATE_ID>');
65+
await EmailJS.send(
66+
'<YOUR_SERVICE_ID>',
67+
'<YOUR_TEMPLATE_ID>',
68+
);
6169
print('SUCCESS!');
6270
} catch (error) {
6371
print(error.toString());

0 commit comments

Comments
 (0)