You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A reusable mailer service to send emails.
4
4
5
5
## Setup
6
6
7
-
Add the mailer service to the classpath by adding the following maven dependeny:
7
+
Add the mailer service to the classpath by adding the following maven dependency. Versions haven be found [here](../../packages)
8
8
9
9
```xml
10
10
@@ -15,14 +15,18 @@ Add the mailer service to the classpath by adding the following maven dependeny:
15
15
</dependency>
16
16
```
17
17
18
+
### Attachments
19
+
18
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)
19
21
This step is optional.
20
22
21
23
## Usage
22
24
23
-
Use the `ManageEmail` service to schedule sending an email.
25
+
### Sending an Email
26
+
27
+
Use the `ManageEmail` service to schedule an email.
To read email datasets from the database use this class: [QueryEmail.java](src%2Fmain%2Fjava%2Fit%2Faboutbits%2Fspringboot%2Femailservice%2Flib%2Fapplication%2FQueryEmail.java)
48
54
55
+
### Reporting callback
56
+
49
57
If you want to receive a report after each run of the scheduler, create a Bean implementing [EmailSchedulerCallback.java](src%2Fmain%2Fjava%2Fit%2Faboutbits%2Fspringboot%2Femailservice%2Flib%2FEmailSchedulerCallback.java)
50
58
51
-
## Configuration
59
+
###Configuration
52
60
53
61
You will have to enable `EntityScanning` for the package as well as your main package. You must also add it to the base packages for Spring to scan.
54
62
@@ -57,12 +65,12 @@ You will have to enable `EntityScanning` for the package as well as your main pa
0 commit comments