thaume / docpad-plugin-contactify Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It seems that nodemailer is expecting a comma delimited string in the "to" field and not an array. When the receiver array is passed I get the 'RecipientError' and '501 5.5.4 Invalid Email Address. If I concat the enquiry.email and config.to then the error goes away
Doesn't matter what is put in the redirect config option the page is always redirected to the root of the web site. Code should be 'config.redirect' rather than 'enquiry.redirect'.
After running the npm install
npm install --save docpad-plugin-contactify
npm http GET https://registry.npmjs.org/docpad-plugin-contactify
npm http 304 https://registry.npmjs.org/docpad-plugin-contactify
npm http GET https://registry.npmjs.org/nodemailer
npm http 304 https://registry.npmjs.org/nodemailer
npm http GET https://registry.npmjs.org/mailcomposer
npm http GET https://registry.npmjs.org/simplesmtp
npm http 304 https://registry.npmjs.org/simplesmtp
npm http 304 https://registry.npmjs.org/mailcomposer
npm http GET https://registry.npmjs.org/rai
npm http GET https://registry.npmjs.org/xoauth2
npm http GET https://registry.npmjs.org/mimelib
npm http GET https://registry.npmjs.org/mime/1.2.9
npm http 304 https://registry.npmjs.org/mime/1.2.9
npm http 304 https://registry.npmjs.org/rai
npm http 304 https://registry.npmjs.org/xoauth2
npm http 304 https://registry.npmjs.org/mimelib
npm http GET https://registry.npmjs.org/encoding
npm http GET https://registry.npmjs.org/addressparser
npm http 304 https://registry.npmjs.org/encoding
npm http 304 https://registry.npmjs.org/addressparser
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/iconv-lite/0.2.7
npm http 304 https://registry.npmjs.org/iconv-lite/0.2.7
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
[email protected] node_modules\docpad-plugin-contactify
└── [email protected] ([email protected], [email protected])
When running docpad I get
Error: Cannot find module 'C:\myproj\node_modules\docpad-plugin-contactify\out\contactify.plugin.js
The file out\contactify.plugin.js
does not exist
In mail options there is no way to stop the enquiry.email value being added to the "to" option of "mailOptions".
receivers.push(enquiry.email, config.to)
mailOptions = {
to: receivers.join(","),
from: config.from or enquiry.email,
subject: 'Enquiry from ' + enquiry.name + ' <' + enquiry.email + '>',
text: enquiry.message,
html: '<p>' + enquiry.message + '</p>'
}
The reason you might want to prevent this is because of spam. If a spammer sends a message via contactify then they will automatically receive an email containing your "config.to" email address in the header. I'm getting a lot of spam and every email has both mine and the spammer's (admittedly false) email address in the "to" field.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.