mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Adjusting tests to use host option
This commit is contained in:
@@ -14,7 +14,15 @@ const optsWithDomain: mailgunTransport.Options = {
|
||||
}
|
||||
};
|
||||
|
||||
const transport: nodemailer.Transporter = nodemailer.createTransport(mailgunTransport(optsWithDomain));
|
||||
const optsWithHost: mailgunTransport.Options = {
|
||||
auth: {
|
||||
api_key: "harry",
|
||||
domain: "http://www.foo.com"
|
||||
},
|
||||
host: 'api.eu.mailgun.net'
|
||||
};
|
||||
|
||||
const transport: nodemailer.Transporter = nodemailer.createTransport(mailgunTransport(optsWithHost));
|
||||
|
||||
// setup e-mail data with unicode symbols
|
||||
const mailOptions: nodemailer.SendMailOptions = {
|
||||
|
||||
Reference in New Issue
Block a user