diff --git a/lib/core-generators/new/templates/api/hooks/custom/index.js.template b/lib/core-generators/new/templates/api/hooks/custom/index.js.template index ef7553a6..03712ad7 100644 --- a/lib/core-generators/new/templates/api/hooks/custom/index.js.template +++ b/lib/core-generators/new/templates/api/hooks/custom/index.js.template @@ -84,6 +84,7 @@ will be disabled and/or hidden in the UI. sails.helpers.mailgun.configure({ secret: sails.config.custom.mailgunSecret, domain: sails.config.custom.mailgunDomain, + hosy: sails.config.custom.mailgunHost, from: sails.config.custom.fromEmailAddress, fromName: sails.config.custom.fromName, }); diff --git a/lib/core-generators/new/templates/config/custom.js.template b/lib/core-generators/new/templates/config/custom.js.template index 68701bc2..838ee11c 100644 --- a/lib/core-generators/new/templates/config/custom.js.template +++ b/lib/core-generators/new/templates/config/custom.js.template @@ -48,11 +48,15 @@ module.exports.custom = { * other default settings related to "how" and "where" automated emails * * are sent. * * * + * EU accounts on Mailgun needs to use 'api.eu.mailgun.com' as host, while * + * every one else can ignore the setting. * + * * * (https://app.mailgun.com/app/domains) * * * **************************************************************************/ // mailgunDomain: 'sandboxaa1234fake678.mailgun.org', // mailgunSecret: 'key-fakeb183848139913858e8abd9a3', + // mailgunHost: 'api.eu.mailgun.net', //-------------------------------------------------------------------------- // /\ Configure these to enable support for automated emails. // || (Important for password recovery, verification, contact form, etc.)