diff --git a/README.md b/README.md index f03658c..4efce4e 100644 --- a/README.md +++ b/README.md @@ -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: 'foo@gmail.com', + pass: '', + }, + }, + }], + ], +} +``` + Missing something? Add your service here via a [pull request](https://github.com/dword-design/nuxt-mail/pulls). ## Debugging mail errors