-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a349ada
commit 75c184f
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,7 +244,7 @@ Also, the module does not work for static sites (via `nuxt generate`) because th | |
|
||
### Gmail | ||
|
||
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: | ||
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: | ||
|
||
```js | ||
// nuxt.config.js | ||
|
@@ -263,6 +263,24 @@ export default { | |
} | ||
``` | ||
|
||
```js | ||
// nuxt.config.js | ||
export default { | ||
modules: [ | ||
['nuxt-mail', { | ||
smtp: { | ||
host: "smtp.gmail.com", | ||
port: 587, | ||
auth: { | ||
user: '[email protected]', | ||
pass: '<app-specific password>', | ||
}, | ||
}, | ||
}], | ||
], | ||
} | ||
``` | ||
|
||
Missing something? Add your service here via a [pull request](https://github.com/dword-design/nuxt-mail/pulls). | ||
|
||
## Debugging mail errors | ||
|