nuxt-mail 4.0.1 → 4.0.3

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.
Files changed (2) hide show
  1. package/README.md +19 -1
  2. package/package.json +2 -2
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-mail",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.",
5
5
  "keywords": [
6
6
  "email",
@@ -40,7 +40,7 @@
40
40
  "test": "base test"
41
41
  },
42
42
  "dependencies": {
43
- "@dword-design/functions": "^4.0.0",
43
+ "@dword-design/functions": "^5",
44
44
  "@nuxt/kit": "^3.0.0",
45
45
  "express": "^4.17.1",
46
46
  "fs-extra": "^11.1.0",