我一直在努力让电子邮件在我的解析服务器上工作,但我还没有成功,所有其他解决方案都适合我。 在我的iOS应用程序(链接到我的解析服务器)中,如果用户请求密码重置电子邮件,则应用程序会说电子邮件已成功发送,但是没有任何内容被发送,并且恶意没有记录任何已发送的内容。 这是我在index.js中的服务器代码:
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://heroku_xxxxxxxxxxxxxxxxxxxxxxxxxxx',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'pzIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrz2',
masterKey: process.env.MASTER_KEY || 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', //Add your master key here. Keep it secret!
serverURL: process.env.SERVER_URL || 'http://app.herokuapp.com/parse', // Don't forget to change to https if needed
liveQuery: {
classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
},
// Enable email verification
verifyUserEmails: true,
// The public URL of your app.
// This will appear in the link that is used to verify email addresses and reset passwords.
// Set the mount path as it is in serverURL
publicServerURL: 'http://app.herokuapp.com/parse',
// Your apps name. This will appear in the subject and body of the emails that are sent.
appName: 'app',
// The email adapter
emailAdapter: {
module: 'parse-server-simple-mailgun-adapter',
options: {
// The address that your emails come from
fromAddress: 'noreply@example.co.za',
// Your domain from mailgun.com
domain: 'sandbox59xxxxxxxxxxxxxxxxxxxxxxx.mailgun.org',
// Your API key from mailgun.com
apiKey: 'key-xxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
}
});
&parse-server-simple-mailgun-adapter'反映在package.json
中如果有人能提供帮助,我们将不胜感激。