Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions lib/_config/_config.js

This file was deleted.

22 changes: 0 additions & 22 deletions lib/_config/emails.js

This file was deleted.

44 changes: 0 additions & 44 deletions lib/utils.js

This file was deleted.

2 changes: 1 addition & 1 deletion server/methods/contactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Meteor.methods({

// Send the e-mail
Email.send({
to: Settings.findOne().contactForm_toEmail,
to: Settings.findOne().contactForm.toEmail,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if this setting is not present? E.g. if the contact form 'to email' has not been provided in the settings collection? I suspect we will get an exception, which needs to be prevented or handled here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check if there is a value set in settings and if not, use email address from settings.json

from: doc.email,
subject: "Apinf Contact Form - Message From " + doc.name,
text: text
Expand Down