MCPcopy Create free account

hub / github.com/nodemailer/nodemailer / functions

Functions546 in github.com/nodemailer/nodemailer

↓ 2 callersMethodaddUser
(username: string, refreshToken?: string)
test/smtp-connection/xoauth2-mock-server.ts:33
↓ 2 callersFunctionanswer
(family: string, callback: (err: Error | null, addresses?: string[]) => void)
test/shared/shared-test.ts:1078
↓ 2 callersMethodappendChild
* Appends an existing node to the mime tree. Removes the node from an existing * tree if needed * * @param childNode node to be appende
src/mime-node/index.ts:450
↓ 2 callersMethodbuildHeaders
* Builds the header block for the mime node. Append \r\n\r\n before writing the content * * @returns Headers
src/mime-node/index.ts:747
↓ 2 callersMethodbuildXOAuth2Token
* Converts an access_token and user id into a base64 encoded XOAuth2 token * * @param [accessToken] Access token string * @return Base6
src/xoauth2/index.ts:442
↓ 2 callersMethodclose
* Closes all connections in the pool. If there is a message being sent, the connection * is closed later
src/smtp-pool/index.ts:212
↓ 2 callersMethodcloseAll
Destroys the open client sockets so close() does not have to wait for them
test/smtp-connection/raw-smtp-server.ts:34
↓ 2 callersMethodcompare
* Checks if two cookie objects are the same * * @param a Cookie to check against * @param b Cookie to check against * @returns Tru
src/fetch/cookies.ts:261
↓ 2 callersFunctioncreateClient
(server: RawServer, options?: Partial<SMTPConnectionOptions>)
test/smtp-connection/raw-smtp-server.ts:158
↓ 2 callersFunctioncreateHttpsProxy
( httpsOptions: https.ServerOptions, listenPort: number, callback: (proxyServer: https.Server, por
test/smtp-connection/https-connect-proxy.ts:8
↓ 2 callersFunctiondecodeServerResponse
* Re-interpret a server response stored in fake 8-bit byte-container form * (the result of chunk.toString('binary') in _onData) as UTF-8. * * Serve
src/smtp-connection/index.ts:292
↓ 2 callersFunctionencode
(buffer: Buffer | string)
src/base64/index.ts:9
↓ 2 callersFunctionerror
* A generic error utility function. * @private * @param type The error type. * @returns Throws a `RangeError` with the applicable error message.
src/punycode/index.ts:67
↓ 2 callersFunctiongenerate
()
scripts/build.js:63
↓ 2 callersMethodgenerateAccessToken
(refreshToken: string)
test/smtp-connection/xoauth2-mock-server.ts:45
↓ 2 callersMethodgenerateAccessToken
(refreshToken: string)
test/xoauth2/server.ts:47
↓ 2 callersMethodgenerateToken
* Generates a new XOAuth2 token with the credentials provided at initialization * * @param callback Callback function with error object and
src/xoauth2/index.ts:300
↓ 2 callersMethodgetAlternatives
* List alternatives. Resulting objects can be used as input for MimeNode nodes * * @returns An array of alternative elements. Includes the `
src/mail-composer/index.ts:427
↓ 2 callersMethodgetAttachments
* List all attachments. Resulting attachment objects can be used as input for MimeNode nodes * * @param findRelated If true separate related
src/mail-composer/index.ts:258
↓ 2 callersMethodgetRegion
(cb: (err: Error | null, region?: string | false) => void)
src/ses-transport/index.ts:93
↓ 2 callersMethodgetSocket
* Placeholder function for creating proxy sockets. This method immediatelly returns * without a socket * * @param options Connection op
src/smtp-transport/index.ts:173
↓ 2 callersMethodgetSocket
* Placeholder function for creating proxy sockets. This method immediatelly returns * without a socket * * @param options Connection op
src/smtp-pool/index.ts:177
↓ 2 callersMethodgetTransferEncoding
()
src/mime-node/index.ts:716
↓ 2 callersMethodgetVersionString
()
src/mailer/index.ts:481
↓ 2 callersFunctionheaderLines
(raw: string)
test/mailer/mail-test.ts:63
↓ 2 callersFunctionhttpProxyClient
( proxyUrl: string, destinationPort: number | string, destinationHost: string, tlsOptions?: Ht
src/smtp-connection/http-proxy-client.ts:54
↓ 2 callersFunctionisContentObject
* Tells whether a content value is a content descriptor object (something to load or to * use as is) rather than the content itself
src/mail-composer/index.ts:167
↓ 2 callersFunctionisFamilySupported
(family: number | string, allowInternal?: boolean)
src/shared/index.ts:204
↓ 2 callersFunctionisPartialResponse
* True when the last line of a queued reply is a continuation ("250-..."), which means * the rest of the reply is still on its way. * * Called with
src/smtp-connection/index.ts:313
↓ 2 callersFunctionisPlainText
(value: unknown, isParam?: boolean)
src/mime-funcs/index.ts:52
↓ 2 callersMethodjwtSignRS256
* Creates a JSON Web Token signed with RS256 (SHA256 + RSA) * * @param payload The payload to include in the generated token * @return
src/xoauth2/index.ts:538
↓ 2 callersFunctionlegacyParse
(input: string, parseQueryString: boolean | undefined, whatwgError: unknown, slashesDenoteHost?: boolean)
src/shared/url.ts:87
↓ 2 callersMethodlist
* Lists all valied cookie objects for the specified URL * * @param url URL to check for * @returns An array of cookie objects
src/fetch/cookies.ts:100
↓ 2 callersFunctionmapDomain
* A simple `Array#map`-like wrapper to work with domain name strings or email * addresses. * @private * @param domain The domain name or email addr
src/punycode/index.ts:98
↓ 2 callersFunctionmessage
()
test/mailer/mail-test.ts:53
↓ 2 callersFunctionmockMail
(envelope: MockEnvelope, data: { [key: string]: any } = {}, body = 'teretere, vana kere')
test/smtp-transport/smtp-fixtures.ts:52
↓ 2 callersMethodnormalize
(callback: MailMessageDataCallback)
src/mailer/mail-message.ts:275
↓ 2 callersFunctionnormalizeKey
(key: string)
src/well-known/index.ts:49
↓ 2 callersFunctionoauthServerOptions
(x2server: OAuthServer, attempts: string[])
test/smtp-transport/smtp-fixtures.ts:239
↓ 2 callersFunctiononce
(fn: (...args: any[]) => any)
test/smtp-connection/smtp-connection-test.ts:124
↓ 2 callersFunctionopenSocket
(host: string, port: number, callback: (err: Error | null, socket?: net.Socket) => void)
test/mailer/proxy-test.ts:64
↓ 2 callersFunctionparseDataURI
(uri: unknown)
src/shared/index.ts:616
↓ 2 callersMethodparseHeaders
()
src/dkim/message-parser.ts:152
↓ 2 callersMethodprocessFunc
* Appends a post process function. The functon is run after transforms and * uses the following syntax * * processFunc(input) -> outp
src/mime-node/index.ts:966
↓ 2 callersFunctionrelaxedHeaderLine
* Relaxed canonicalization of a header field value (RFC 6376 section 3.4.2): unfold, turn * every run of SP and HTAB into a single SP and drop the wh
src/dkim/sign.ts:164
↓ 2 callersMethodremove
* Removes current node from the mime tree * * @return removed node
src/mime-node/index.ts:502
↓ 2 callersMethodreset
* Resets connection state * * @param callback Callback to return once connection is reset
src/smtp-connection/index.ts:1171
↓ 2 callersFunctionresolve
( family: number, hostname: string, options: ResolveHostnameOptions | undefined, callback: (er
src/shared/index.ts:215
↓ 2 callersMethodresolveAll
(callback: MailMessageDataCallback)
src/mailer/mail-message.ts:174
↓ 2 callersFunctionsafeDecode
(str: string)
src/shared/url.ts:112
↓ 2 callersMethodsendNextChunk
()
src/dkim/index.ts:132
↓ 2 callersMethodsendSignedOutput
()
src/dkim/index.ts:154
↓ 2 callersMethodsetEnvelope
* Sets envelope to be used instead of the generated one * * @return SMTP envelope in the form of {from: 'from@example.com', to: ['to@example
src/mime-node/index.ts:1115
↓ 2 callersFunctionsettle
( transport: { send(mail: MailMessage, callback: SMTPTransportSendCallback): unknown }, mail: MailMess
test/smtp-transport/smtp-fixtures.ts:267
↓ 2 callersFunctionsign
* Returns DKIM signature header line * * @param headers Parsed headers object from MessageParser * @param bodyHash Base64 encoded hash of the messa
src/dkim/sign.ts:53
↓ 2 callersMethodstart
(callback: () => void)
test/smtp-connection/xoauth2-mock-server.ts:77
↓ 2 callersFunctionstartOAuthServer
()
test/smtp-transport/smtp-fixtures.ts:209
↓ 2 callersFunctionstartRawSmtpServer
(dropFirst: number)
test/smtp-transport/smtp-fixtures.ts:165
↓ 2 callersFunctionstartServer
(options: { [key: string]: any } = {})
test/smtp-transport/smtp-fixtures.ts:102
↓ 2 callersMethodstream
(outputStream: Writable, options: MimeNodeStreamOptions, done: (err?: Error | null) => void)
src/mime-node/index.ts:970
↓ 2 callersFunctiontagSesError
* Tags AWS SDK rejections that carry no `code` property (SDK v3 errors only * have a `name`) with the generic SES transport error code, keeping the
src/ses-transport/index.ts:57
↓ 2 callersFunctiontempSocketErr
(err: Error)
src/smtp-connection/http-proxy-client.ts:101
↓ 2 callersMethodupdateHash
(chunk: Buffer, final?: boolean)
src/dkim/relaxed-body.ts:106
↓ 2 callersMethodupdateToken
* Updates token values * * @param accessToken New access token * @param timeout Access token lifetime in seconds * * Emits 't
src/xoauth2/index.ts:283
↓ 2 callersMethoduse
(step: string, plugin: PluginFunction<T>)
src/mailer/index.ts:343
↓ 2 callersFunctionwrap
(str: string, lineLength?: number | false)
src/base64/index.ts:24
↓ 2 callersFunctionwriteIfChanged
(target, source)
scripts/build.js:57
↓ 1 callersMethod_accessDisabled
* Checks an access policy flag for this node and every node above it. The flags are set * from the options the node was built with, and createChi
src/mime-node/index.ts:1256
↓ 1 callersMethod_actionAUTH_CRAM_MD5
* Handle the response for AUTH CRAM-MD5 command. We are expecting * '334 <challenge string>'. Data to be sent as response needs to be * base
src/smtp-connection/index.ts:2074
↓ 1 callersMethod_actionAUTH_CRAM_MD5_PASS
* Handles the response to CRAM-MD5 authentication, if there's no error, * the user can be considered logged in. Start waiting for a message to se
src/smtp-connection/index.ts:2108
↓ 1 callersMethod_actionAUTH_LOGIN_PASS
* Handle the response for AUTH LOGIN command. We are expecting * '334 UGFzc3dvcmQ6' (base64 for 'Password:'). Data to be sent as * response
src/smtp-connection/index.ts:2134
↓ 1 callersMethod_actionAUTH_LOGIN_USER
* Handle the response for AUTH LOGIN command. We are expecting * '334 VXNlcm5hbWU6' (base64 for 'Username:'). Data to be sent as * response
src/smtp-connection/index.ts:2051
↓ 1 callersMethod_actionDATA
* Handle response for a DATA command * * @param str Message from the server
src/smtp-connection/index.ts:2287
↓ 1 callersMethod_actionEHLO
* Handles server response for EHLO command. If it yielded in * error, try HELO instead, otherwise initiate TLS negotiation * if STARTTLS is
src/smtp-connection/index.ts:1876
↓ 1 callersMethod_actionLMTPStream
* Handle response for a DATA stream * We expect a separate response for every recipient. All recipients can either * succeed or fail separat
src/smtp-connection/index.ts:2333
↓ 1 callersMethod_actionMAIL
* Handle response for a MAIL FROM: command * * @param str Message from the server
src/smtp-connection/index.ts:2209
↓ 1 callersMethod_actionRCPT
* Handle response for a RCPT TO: command * * @param str Message from the server
src/smtp-connection/index.ts:2241
↓ 1 callersMethod_actionSMTPStream
* Handle response for a DATA stream when using SMTP * We expect a single response that defines if the sending succeeded or failed * * @
src/smtp-connection/index.ts:2317
↓ 1 callersMethod_checkRateLimit
* Checks if connections have hit current rate limit and if so, queues the availability callback * * @param callback Callback function to run
src/smtp-pool/index.ts:578
↓ 1 callersMethod_clearRateLimit
* Clears current rate limit limitation and runs paused callback
src/smtp-pool/index.ts:607
↓ 1 callersMethod_continueProcessing
* Continue to process message if the pool hasn't closed
src/smtp-pool/index.ts:552
↓ 1 callersMethod_convertDataImages
(mail: MailMessage<T>, callback: PluginCallback)
src/mailer/index.ts:649
↓ 1 callersMethod_createConnection
* Creates a new pool resource
src/smtp-pool/index.ts:375
↓ 1 callersMethod_createMixed
* Builds multipart/mixed node. It should always contain different type of elements on the same level * eg. text + attachments * * @para
src/mail-composer/index.ts:554
↓ 1 callersMethod_createSendStream
(callback: SMTPConnectionResponseCallback)
src/smtp-connection/index.ts:1770
↓ 1 callersMethod_emitContent
* Writes a content byte, with the space a pending run of whitespace collapses to, * into the output buffer and returns the new write position. Ke
src/dkim/relaxed-body.ts:87
↓ 1 callersMethod_encodeAddressName
* If needed, mime encodes the name part * * @param name Name part of an address * @returns Mime word encoded string if needed
src/mime-node/index.ts:1692
↓ 1 callersMethod_encodeHeaderText
* Encodes an unstructured header value. Such a value can only carry VCHAR and WSP, so a * control char or DEL has to be forced into the mime enco
src/mime-node/index.ts:1711
↓ 1 callersMethod_failDeliveryOnConnectionClose
(connection: PoolResource)
src/smtp-pool/index.ts:510
↓ 1 callersMethod_getHostname
()
src/smtp-connection/index.ts:2400
↓ 1 callersFunction_handleAddress
* Converts tokens for a single address into an address object * * @param tokens Tokens object * @param depth Current recursion depth for nested gro
src/addressparser/index.ts:194
↓ 1 callersMethod_hashEmptyLines
()
src/dkim/relaxed-body.ts:74
↓ 1 callersFunction_logFunc
( logger: ExternalLogger, level: string, defaults: LogEntry | undefined, data: LogEntry | unde
src/shared/index.ts:544
↓ 1 callersMethod_normalizeLocalPart
* Normalizes the local part of an address into a form that can be emitted as is. * * A local part is either a dot-atom or a quoted-string, a
src/mime-node/index.ts:1678
↓ 1 callersMethod_normalizeParsedAddresses
* Normalizes the addresses of a freshly parsed address list, groups included. * * Everything this method returns carries a normalized addres
src/mime-node/index.ts:1393
↓ 1 callersMethod_onClose
* 'close' listener for the socket * * @event
src/smtp-connection/index.ts:1355
↓ 1 callersMethod_onEnd
* 'end' listener for the socket * * @event
src/smtp-connection/index.ts:1393
↓ 1 callersMethod_onTimeout
* 'timeout' listener for the socket * * @event
src/smtp-connection/index.ts:1406
↓ 1 callersMethod_parseEnvelopeAddresses
* Parses the addresses of an explicitly set envelope. * * An envelope value is an addr-spec and never a display name, so a bare local userna
src/mime-node/index.ts:1416
↓ 1 callersFunction_quoteLocalPart
* Restores the quoting of a local part that was read out of a quoted string. * * RFC 5321 allows '@' inside a quoted local part, so handing '"user@e
src/addressparser/index.ts:75
← previousnext →101–200 of 546, ranked by callers