File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default new Action({
14
14
} ,
15
15
to : 'chrisbreuer93@gmail.com' ,
16
16
subject : 'Test Email' ,
17
- template : 'test.html ' ,
17
+ text : 'test' ,
18
18
} )
19
19
20
20
// async handle(request: UserRequestType) {
Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ export abstract class BaseEmailDriver implements EmailDriver {
35
35
throw new Error ( 'Email subject is required' )
36
36
}
37
37
38
- if ( ! message . template ) {
39
- throw new Error ( 'Email template path is required' )
40
- }
41
-
42
38
return true
43
39
}
44
40
Original file line number Diff line number Diff line change @@ -92,9 +92,11 @@ export class MailtrapDriver extends BaseEmailDriver {
92
92
}
93
93
94
94
private async sendWithRetry ( payload : any , attempt = 1 ) : Promise < any > {
95
- const endpoint = this . inboxId
96
- ? `https://sandbox.api.mailtrap.io/send/${ this . inboxId } `
97
- : 'https://sandbox.api.mailtrap.io/send'
95
+ if ( ! this . inboxId ) {
96
+ throw new Error ( 'Mailtrap inbox ID is required but not provided. Please set MAILTRAP_INBOX_ID in your environment variables.' )
97
+ }
98
+
99
+ const endpoint = `https://sandbox.api.mailtrap.io/api/send/${ this . inboxId } `
98
100
99
101
try {
100
102
const response = await fetch ( endpoint , {
You can’t perform that action at this time.
0 commit comments