File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
storage/framework/core/types/src Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,26 @@ export default {
22
22
server : {
23
23
scan : true , // scans for spam and viruses
24
24
} ,
25
+
26
+ // Add driver configuration
27
+ default : env . MAIL_DRIVER || 'ses' ,
28
+
29
+ drivers : {
30
+ ses : {
31
+ region : env . AWS_SES_REGION || 'us-east-1' ,
32
+ credentials : {
33
+ accessKeyId : env . AWS_ACCESS_KEY_ID ,
34
+ secretAccessKey : env . AWS_SECRET_ACCESS_KEY ,
35
+ } ,
36
+ } ,
37
+
38
+ sendgrid : {
39
+ apiKey : env . SENDGRID_API_KEY ,
40
+ } ,
41
+
42
+ mailtrap : {
43
+ token : env . MAILTRAP_TOKEN ,
44
+ inboxId : env . MAILTRAP_INBOX_ID ,
45
+ } ,
46
+ } ,
25
47
} satisfies EmailConfig
Original file line number Diff line number Diff line change @@ -9,11 +9,30 @@ export interface EmailOptions {
9
9
mailboxes : string [ ]
10
10
11
11
url : string
12
- charset : string // e.g. UTF-8
12
+ charset : string
13
13
14
14
server : {
15
15
scan ?: boolean
16
16
}
17
+
18
+ default : 'ses' | 'sendgrid' | 'mailtrap'
19
+
20
+ drivers : {
21
+ ses ?: {
22
+ region : string
23
+ credentials : {
24
+ accessKeyId ?: string
25
+ secretAccessKey ?: string
26
+ }
27
+ }
28
+ sendgrid ?: {
29
+ apiKey ?: string
30
+ }
31
+ mailtrap ?: {
32
+ token ?: string
33
+ inboxId ?: string | number
34
+ }
35
+ }
17
36
}
18
37
19
38
export type EmailConfig = Partial < EmailOptions >
You can’t perform that action at this time.
0 commit comments