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
@@ -11,28 +11,36 @@ database with Grails domain classes and sends them by a scheduled Quartz job. Ma
11
11
the `sendAsynchronousMail` (or `sendMail`) method returning instantly, is not waiting for the mail to be actually sent. If
12
12
the SMTP server isn't available, or other errors occur, the plugin can be set to retry later.
13
13
14
-
The plugin depends on the [quartz](https://grails.org/plugins.html#plugin/quartz) and the [mail](https://grails.org/plugins.html#plugin/mail) plugins. You also need a persistence provider plugin, [hibernate4](https://grails.org/plugins.html#plugin/hibernate4)and [mongodb](https://grails.org/plugins.html#plugin/mongodb) are supported.
14
+
The plugin depends on the [quartz](https://plugins.grails.org/plugin/grails/quartz) and the [mail](https://plugins.grails.org/plugin/grails/mail) plugins. You also need a persistence provider plugin, [hibernate5](https://plugins.grails.org/plugin/grails/hibernate5) (or the appropriate version of hibernate for previous grails versions) and [mongodb](https://plugins.grails.org/plugin/grails/mongodb) are supported.
15
15
16
16
Links
17
17
-----
18
18
19
-
* The plugin page: <https://grails.org/plugins.html#plugin/asynchronous-mail>
20
-
* The VCS repository (GitHub): <https://github.com/kefirfromperm/grails-asynchronous-mail>
21
-
* The issue tracker (GitHub): <https://github.com/kefirfromperm/grails-asynchronous-mail/issues>
22
-
* The repository package (BinTray): <https://bintray.com/kefirsf/plugins/asynchronous-mail/>
23
-
* The page at OpenHUB: <https://www.openhub.net/p/grails-asynchronous-mail>
19
+
* The plugin page: <https://plugins.grails.org/plugin/grails/asynchronous-mail>
20
+
* The VCS repository (GitHub): <https://github.com/gpc/grails-asynchronous-mail>
21
+
* The issue tracker (GitHub): <https://github.com/gpc/grails-asynchronous-mail/issues>
24
22
25
23
Installation
26
24
------------
27
25
28
-
To install just add the plugin to the plugins block of `build.gradle`. For Grails 3.3.x
26
+
To install just add the plugin to the plugins block of `build.gradle`:
asynchronous.mail.persistence.provider='hibernate4' // Possible values are 'hibernate', 'hibernate4', 'mongodb'
63
+
asynchronous.mail.persistence.provider='hibernate5' // Possible values are 'hibernate', 'hibernate4', 'hibernate5', 'mongodb'
56
64
asynchronous.mail.newSessionOnImmediateSend=false
57
65
asynchronous.mail.taskPoolSize=1
58
66
```
59
67
60
-
If you want to change this options just add options which you want to change to your configuration file `/grails-app/conf/application.groovy`.
68
+
If you want to change this options just add options which you want to change to your configuration file `/grails-app/conf/application.groovy` or `/grails-app/conf/application.yml`.
61
69
62
70
|Option|Default|Description|
63
71
|------|-------|-----------|
@@ -70,16 +78,16 @@ If you want to change this options just add options which you want to change to
70
78
|`asynchronous.mail.clear.after.sent`|`false`|If `true` then all messages will be deleted after sent. If `attachments` then attachments of all messages will be deleted.|
71
79
|`asynchronous.mail.disable`|`false`|If true then jobs aren't started.|
72
80
|`asynchronous.mail.useFlushOnSave`|`true`|By default the plugin flushes all changes to the DB on every step of the sending process for prevent resending but it makes overhead. So you can set this property to `false` and it will have better performance but will not have guarantee of prevention of resending.|
73
-
|`asynchronous.mail.persistence.provider`|`hibernate4`|The persistence provider. Possible values are `hibernate`, `hibernate3`, `hibernate4`, `hibernate5`, `mongodb`.|
81
+
|`asynchronous.mail.persistence.provider`|`hibernate5`|The persistence provider. Possible values are `hibernate`, `hibernate3`, `hibernate4`, `hibernate5`, `mongodb`.|
74
82
|`asynchronous.mail.newSessionOnImmediateSend`|`false`|If `true` the new DB session will be created for storing a message into DB. It's needed if you want to send an email in case of error when all changes in DB are rolled back.|
75
83
|`asynchronous.mail.taskPoolSize`|`1`|Max count of parallel tasks for sending messages concurrently.|
76
84
77
-
Configure the [mail](https://grails.org/plugins.html#plugin/mail) plugin. The Asynchronous Mail plugin uses the [mail](https://grails.org/plugins.html#plugin/mail) plugin for sending messages to the SMTP server.
85
+
Configure the [mail](https://plugins.grails.org/plugin/grails/mail) plugin. The Asynchronous Mail plugin uses the [mail](https://plugins.grails.org/plugin/grails/mail) plugin for sending messages to the SMTP server.
78
86
79
87
Usage
80
88
-----
81
89
82
-
If you already used the [mail](https://grails.org/plugins.html#plugin/mail) plugin, you have to import class `AsynchronousMailService` to your class.
90
+
If you already used the [mail](https://plugins.grails.org/plugin/grails/mail) plugin, you have to import class `AsynchronousMailService` to your class.
I recommend to create an index on the `async_mail_mess.status` column. It's result of my heuristic observations. Only DBA have to create indexes anyway.
161
+
A recommendation is to create an index on the `async_mail_mess.status` column. It's result of my heuristic observations. Only DBA have to create indexes anyway.
154
162
155
163
Issue tracking
156
164
--------------
157
165
158
-
You can report bugs on [GitHub](https://github.com/kefirfromperm/grails-asynchronous-mail/issues?state=open).
0 commit comments