Skip to content

Commit 98a54b1

Browse files
committed
sdk-v4: run Action for pull-request
1 parent a94a8bd commit 98a54b1

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches: [ master, sdk-v4 ]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [ master, sdk-v4 ]
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
5858
var 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
7676
emailjs.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
8989
import 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
\
116116
The 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
123125
import emailjs from '@emailjs/browser';
124126

@@ -127,6 +129,8 @@ emailjs.init({
127129
});
128130
```
129131

132+
**Overwrite settings locally**
133+
130134
```js
131135
import emailjs from '@emailjs/browser';
132136

0 commit comments

Comments
 (0)