Skip to content

Commit

Permalink
chore(readme): update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
NextNC committed Apr 12, 2021
1 parent 3e2e560 commit 2f6d4e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ interface EmailOptions {
html?: string;
template?: string;
attachment?;
'recipient-variables'?: {
[email: string]: any;
};
'h:X-Mailgun-Variables'?: string;
}
```

Expand All @@ -103,9 +101,17 @@ export class YourService {
text: '',
html: '',
attachment:''
'h:X-Mailgun-Variables': '{"key":"value"}'
};

await this.mailgunService.sendEmail(options);


// OR can use the class

const email = new MailgunEmailModel('from', 'to', 'subject', 'text', 'html', 'template','attachment', { key: 'value' });

await this.mailgunService.sendEmail(email);
}
```
Expand All @@ -120,7 +126,7 @@ import { EmailOptions } from '@nextnm/nestjs-mailgun'
@Injectable()
export class YourService {
constructor(private mailgunService: MailgunService) {
await this.mailgunService.verifyEmail('[email protected]);
await this.mailgunService.verifyEmail('[email protected]');
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextnm/nestjs-mailgun",
"version": "1.1.0",
"version": "1.1.1",
"description": "NestJS provider for sending emails with mailgun",
"author": "Nuno Carvalhão <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 2f6d4e8

Please sign in to comment.