Skip to content

Commit e0a231f

Browse files
committed
update readme
1 parent ad00290 commit e0a231f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

readme.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ Add the mailer service to the classpath by adding the following maven dependency
1717

1818
### Attachments
1919

20-
If you want to use attachments, you will have to create a bean implementing this interface: [AttachmentDataSource.java](src%2Fmain%2Fjava%2Fit%2Faboutbits%2Fspringboot%2Femailservice%2Flib%2FAttachmentDataSource.java)
21-
This step is optional.
20+
Attachments work out of the box. The library ships a default that stores attachment payloads in the
21+
lib-owned table `email_service_attachment_payloads`. The table is created automatically the first time the default is
22+
used, unless `aboutbits.emailservice.migrations.enabled` is set to `false`.
23+
24+
If you want to store payloads somewhere else (e.g. S3), define your own bean implementing this
25+
interface: [AttachmentDataSource.java](src%2Fmain%2Fjava%2Fit%2Faboutbits%2Fspringboot%2Femailservice%2Flib%2FAttachmentDataSource.java)
26+
The default then backs off and its table is never created.
2227

2328
#### Inline (CID) attachments
2429

0 commit comments

Comments
 (0)