Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design authored Nov 22, 2023
1 parent a349ada commit 75c184f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75c184f

Please sign in to comment.