
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@types/sendmail
Advanced tools
TypeScript definitions for sendmail
npm install --save @types/sendmail
This package contains type definitions for sendmail (https://github.com/guileen/node-sendmail).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sendmail.
// Type definitions for sendmail 1.4
// Project: https://github.com/guileen/node-sendmail
// Definitions by: Saeid Ostad <https://github.com/saostad>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
declare namespace sendMailFactory {
interface Options {
logger?: {
debug?: (() => void) | undefined;
info?: (() => void) | undefined;
warn?: (() => void) | undefined;
error?: (() => void) | undefined;
} | undefined;
silent?: boolean | undefined;
/** Default: False */
dkim?:
| boolean
| {
privateKey: string;
keySelector: string;
} | undefined;
/** Default: False */
devPort?: number | boolean | undefined;
/** Default: localhost */
devHost?: string | undefined;
/** Default: 25 */
smtpPort?: number | undefined;
/** Default: -1 - extra smtp host after resolveMX */
smtpHost?: string | number | undefined;
}
interface MailInput {
from: string;
sender?: string | undefined;
to: string;
cc?: string | undefined;
bcc?: string | undefined;
replyTo?: string | undefined;
inReplyTo?: string | undefined;
returnTo?: string | undefined;
subject: string;
type?: string | undefined;
charset?: string | undefined;
encoding?: string | undefined;
id?: string | undefined;
headers?: object | undefined;
content?: string | undefined;
text?: string | undefined;
html?: string | undefined;
attachments?: Array<{
type?: string | undefined;
filename?: string | undefined;
content?: any;
path?: string | undefined;
contentType?: string | undefined;
encoding?: string | undefined;
}> | undefined;
}
}
type CallbackFn = (err: Error, domain: string) => void;
type SendMailFn = (mail: sendMailFactory.MailInput, callback: CallbackFn) => void;
declare function sendMailFactory(options: sendMailFactory.Options): SendMailFn;
export = sendMailFactory;
These definitions were written by Saeid Ostad.
FAQs
TypeScript definitions for sendmail
The npm package @types/sendmail receives a total of 6,764 weekly downloads. As such, @types/sendmail popularity was classified as popular.
We found that @types/sendmail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.