nuxt-mail 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -244,7 +244,7 @@ Also, the module does not work for static sites (via `nuxt generate`) because th
|
|
|
244
244
|
|
|
245
245
|
### Gmail
|
|
246
246
|
|
|
247
|
-
You have to setup an [app-specific password](https://myaccount.google.com/apppasswords) to log into the SMTP server. Then, add the following config to your `nuxt-mail` config:
|
|
247
|
+
You have to setup an [app-specific password](https://myaccount.google.com/apppasswords) to log into the SMTP server. Then, add the following config to your `nuxt-mail` config. Looks like there are multiple ways to configure Gmail, so it's best to try out the options:
|
|
248
248
|
|
|
249
249
|
```js
|
|
250
250
|
// nuxt.config.js
|
|
@@ -263,6 +263,24 @@ export default {
|
|
|
263
263
|
}
|
|
264
264
|
```
|
|
265
265
|
|
|
266
|
+
```js
|
|
267
|
+
// nuxt.config.js
|
|
268
|
+
export default {
|
|
269
|
+
modules: [
|
|
270
|
+
['nuxt-mail', {
|
|
271
|
+
smtp: {
|
|
272
|
+
host: "smtp.gmail.com",
|
|
273
|
+
port: 587,
|
|
274
|
+
auth: {
|
|
275
|
+
user: 'foo@gmail.com',
|
|
276
|
+
pass: '<app-specific password>',
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
}],
|
|
280
|
+
],
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
266
284
|
Missing something? Add your service here via a [pull request](https://github.com/dword-design/nuxt-mail/pulls).
|
|
267
285
|
|
|
268
286
|
## Debugging mail errors
|
package/package.json
CHANGED