nuxt-mail 3.0.12 → 3.0.16
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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- /TITLE -->
|
|
4
4
|
|
|
5
5
|
<!-- BADGES/ -->
|
|
6
|
-
|
|
6
|
+
<p>
|
|
7
7
|
<a href="https://npmjs.org/package/nuxt-mail">
|
|
8
8
|
<img
|
|
9
9
|
src="https://img.shields.io/npm/v/nuxt-mail.svg"
|
|
@@ -69,7 +69,7 @@ $ yarn add nuxt-mail
|
|
|
69
69
|
|
|
70
70
|
## Usage
|
|
71
71
|
|
|
72
|
-
Add the module to your `nuxt.config.js`. We also have to install the [@nuxtjs/axios](https://www.npmjs.com/package/@nuxtjs/axios) module because it is used internally to call the server route:
|
|
72
|
+
Add the module to the `modules` array in your `nuxt.config.js`. Note to add it to `modules` instead of `buildModules`, otherwise the server route will not be generated. We also have to install the [@nuxtjs/axios](https://www.npmjs.com/package/@nuxtjs/axios) module because it is used internally to call the server route:
|
|
73
73
|
```js
|
|
74
74
|
export default {
|
|
75
75
|
modules: [
|
|
@@ -178,6 +178,8 @@ export default {
|
|
|
178
178
|
}
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
+
Also, the module does not work for static sites (via `nuxt generate`) because the module creates a server route.
|
|
182
|
+
|
|
181
183
|
## Debugging mail errors
|
|
182
184
|
|
|
183
185
|
If the mail doesn't get sent, you can debug the error using the browser developer tools. If a 500 error is thrown (check out the console output), you can find the error message in the Network tab. For Chrome users, open the Network tab, then find the "send" request. Open it and select the "Response" tab. There it should show the error message. In most cases, it is related to authentication with the SMTP server.
|
package/package.json
CHANGED