nuxt-mail | Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses | Frontend Framework library
kandi X-RAY | nuxt-mail Summary
kandi X-RAY | nuxt-mail Summary
Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails. Does not work for static sites (via nuxt generate) because the module creates a server route.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nuxt-mail
nuxt-mail Key Features
nuxt-mail Examples and Code Snippets
Community Discussions
Trending Discussions on nuxt-mail
QUESTION
I'm actually trying to use nuxt-mail in a personnal project,
During my development phase, I receive all my testing mails. And from there I did the following adjustments to do the exact same request from my builded site :
...ANSWER
Answered 2021-Jul-17 at 15:50Well you just misunderstood the env field in the nuxt.config.js file. That env field is passed to the $config Object of the Nuxt App and not passed to process.env.
What you want is to set the BaseUrl for the Axios Module
QUESTION
I am a total newbie at Nuxt.js/Vue.js so here are some newbie questions :D
I am having problems with sending mail from a contact from in my Nuxt.js application. I am trying to use nuxt-mailer but I can't make it work. I have installed axios
and nuxt-mail.
I get 500 (Internal Server Error).
So I am adding this in nuxt.config.js
:
ANSWER
Answered 2021-Apr-15 at 13:39Looking at the readme and the related page of nodemailer, it looks like that:
to
refers to the actual email address of the receiver, something likekuro@yourdomain.com
- host needs to be a valid hosted SMTP server, so localhost is probably no the good one here, since it will 100% not work once pushed to production
- the port depends of the SMTP configuration essentially:
defaults to 587 if is secure is false or 465 if true
(fromnodemailer
documentation)
Here is a blog article to setup some emails IF you will be using the node part of your Nuxt app: https://blog.lichter.io/posts/emails-through-nuxtjs/
Here is a blogpost on how to especially use nuxt-mail
: https://dword-design.de/blog/sending-emails-with-nuxt-js-the-easy-way/
You will still need a mail sending service to have this work, on Mailtrap thanks to Mailgun, Sendgrid, Mailchimp or alike.
You can also use Netlify functions for that: https://css-tricks.com/netlify-functions-for-sending-emails/ or any other serverless functions
As you can see, the configuration is not trivial and there are several ways to achieve this but it essentially comes down of using an exernal service, especially if you plan on going full-static only.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nuxt-mail
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page