@@ -39,8 +39,8 @@ Or manually:
3939``` html
4040<script
4141 type =" text/javascript"
42- src =" https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js"
43- > </script >
42+ src =" https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js" >
43+ </script >
4444<script type =" text/javascript" >
4545 (function () {
4646 emailjs .init ({
@@ -52,7 +52,7 @@ Or manually:
5252
5353## Examples
5454
55- ** send email**
55+ ** Send the email using the customized send method **
5656
5757``` js
5858var templateParams = {
@@ -70,7 +70,7 @@ emailjs.send('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', templateParams).then(
7070);
7171```
7272
73- ** send form**
73+ ** Send the email from a form using the sendForm method **
7474
7575``` js
7676emailjs .sendForm (' YOUR_SERVICE_ID' , ' YOUR_TEMPLATE_ID' , ' #myForm' ).then (
@@ -83,7 +83,7 @@ emailjs.sendForm('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', '#myForm').then(
8383);
8484```
8585
86- ** Angular X / VueJS / ReactJS**
86+ ** Using Angular / VueJS / ReactJS / Svelte / any other modern framework **
8787
8888``` js
8989import emailjs from ' @emailjs/browser' ;
@@ -111,14 +111,16 @@ emailjs
111111
112112** Options**
113113
114- Options can be declared globally using the init method or locally as the fourth parameter of a function.
114+ Options can be declared globally using the ** init** method or locally as the fourth parameter of a function.
115115\
116116The local parameter will have higher priority than the global one.
117117
118118| Name | Type | Description |
119119| --------- | ------ | ------------------------------------------------- |
120120| publicKey | String | The public key is required to invoke the command. |
121121
122+ ** Declare global settings**
123+
122124``` js
123125import emailjs from ' @emailjs/browser' ;
124126
@@ -127,6 +129,8 @@ emailjs.init({
127129});
128130```
129131
132+ ** Overwrite settings locally**
133+
130134``` js
131135import emailjs from ' @emailjs/browser' ;
132136
0 commit comments