@@ -9,7 +9,7 @@ Use you EmailJS account for sending emails.
9
9
10
10
## Disclaimer
11
11
12
- This is a NodeJS-only version, otherwise use
12
+ This is a React Native version, otherwise use
13
13
- [ Browser SDK] ( https://www.npmjs.com/package/@emailjs/browser )
14
14
- [ Flutter SDK] ( https://pub.dev/packages/emailjs )
15
15
- [ Node.js SDK] ( https://pub.dev/packages/@emailjs/nodejs )
@@ -58,8 +58,8 @@ const templateParams = {
58
58
};
59
59
60
60
emailjs
61
- .send (' < YOUR_SERVICE_ID> ' , ' < YOUR_TEMPLATE_ID> ' , templateParams, {
62
- publicKey: ' < YOUR_PUBLIC_KEY> ' ,
61
+ .send (' YOUR_SERVICE_ID' , ' YOUR_TEMPLATE_ID' , templateParams, {
62
+ publicKey: ' YOUR_PUBLIC_KEY' ,
63
63
})
64
64
.then (
65
65
(response ) => {
@@ -78,10 +78,10 @@ import emailjs from '@emailjs/react-native';
78
78
79
79
// set Public Key as global settings
80
80
emailjs .init ({
81
- publicKey: ' < YOUR_PUBLIC_KEY> ' ,
81
+ publicKey: ' YOUR_PUBLIC_KEY' ,
82
82
});
83
83
84
- emailjs .send (' < YOUR_SERVICE_ID> ' , ' < YOUR_TEMPLATE_ID> ' ).then (
84
+ emailjs .send (' YOUR_SERVICE_ID' , ' YOUR_TEMPLATE_ID' ).then (
85
85
(response ) => {
86
86
console .log (' SUCCESS!' , response .status , response .text );
87
87
},
@@ -98,11 +98,11 @@ import emailjs, { EmailJSResponseStatus } from '@emailjs/react-native';
98
98
99
99
try {
100
100
await emailjs .send (
101
- ' < YOUR_SERVICE_ID> ' ,
102
- ' < YOUR_TEMPLATE_ID> ' ,
101
+ ' YOUR_SERVICE_ID' ,
102
+ ' YOUR_TEMPLATE_ID' ,
103
103
{},
104
104
{
105
- publicKey: ' < YOUR_PUBLIC_KEY> ' ,
105
+ publicKey: ' YOUR_PUBLIC_KEY' ,
106
106
},
107
107
);
108
108
console .log (' SUCCESS!' );
@@ -129,8 +129,8 @@ var templateParams = {
129
129
};
130
130
131
131
emailjs
132
- .send (' < YOUR_SERVICE_ID> ' , ' < YOUR_TEMPLATE_ID> ' , templateParams, {
133
- publicKey: ' < YOUR_PUBLIC_KEY> ' ,
132
+ .send (' YOUR_SERVICE_ID' , ' YOUR_TEMPLATE_ID' , templateParams, {
133
+ publicKey: ' YOUR_PUBLIC_KEY' ,
134
134
})
135
135
.then (
136
136
function (response ) {
0 commit comments