Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 457cfda

Browse files
committed
Fix references to renamed packageSettings
1 parent fb0e039 commit 457cfda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/api/email.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ There are scenarios when you have your own transport set up, be it an SDK
102102
for your mailing service or something else. This is where `customTransport`
103103
comes in. If you set this function all sending events will be passed to it
104104
(after `hookSend` is run) with an object of the options passed into `send`
105-
function with addition of `settings` key which will pass in package settings
105+
function with addition of `packageSettings` key which will pass in package settings
106106
set in your app settings (if any). It is up to you what you do in that function
107107
as it will override the original sending function.
108108

@@ -111,7 +111,7 @@ Example:
111111
import { Email } from 'meteor/email'
112112

113113
Email.customTransport = (options) => {
114-
// `options.settings` are settings from `Meteor.settings.packages.email`
114+
// `options.packageSettings` are settings from `Meteor.settings.packages.email`
115115
// The rest of the options are from Email.send options
116116
customApi.send({ from: options.packageSettings.fromOverride || options.from, to: options.to, message: options.html || options.text });
117117
}

0 commit comments

Comments
 (0)