Skip to content

Commit

Permalink
examples: revert doc changes from transport.
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Jan 10, 2024
1 parent 6fb736e commit 82a7a64
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions examples/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@ import { MailtrapTransport } from "mailtrap"
* For this example to work, you need to set up a sending domain,
* and obtain a token that is authorized to send from the domain.
* @see https://help.mailtrap.io/article/69-sending-domain-setup
*
* @description Nodemailer is needed as a dependency.
* Note: 'sandbox: true' can be passed for making requests to Testing API.
*
* ```sh
* yarn add nodemailer
*
* # or, if you are using NPM:
* npm install --s nodemailer
* ```
*
* If you're using Typescript, install `@types/nodemailer` as a `devDependency`.
*
* ```sh
* yarn add --dev @types/nodemailer
*
* # or, if you are using NPM:
* npm install --s-dev @types/nodemailer
* ```
*
* You can provide Mailtrap specific keys like `category`, `customVariables`, `templateUuid` and `templateVariables`.
*/

const TOKEN = "<YOUR-TOKEN-HERE>"
Expand All @@ -37,6 +16,7 @@ const transport = Nodemailer.createTransport(MailtrapTransport({
token: TOKEN
}))

// Note: 'sandbox: true' can be passed for making requests to Testing API
transport.sendMail({
text: "Welcome to Mailtrap Sending!",
to: {
Expand Down

0 comments on commit 82a7a64

Please sign in to comment.