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,23 +11,23 @@ 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, [hibernate5](https://plugins.grails.org/plugin/grails/hibernate5) and [mongodb](https://plugins.grails.org/plugin/grails/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://plugins.grails.org/plugin/kefirsf/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 4.0.x
26
+
To install just add the plugin to the plugins block of `build.gradle`:
If you want to change this options just add options which you want to change to your configuration file `/grails-app/conf/application.groovy`.
63
+
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`.
64
64
65
65
|Option|Default|Description|
66
66
|------|-------|-----------|
@@ -108,22 +108,22 @@ Next, change your sendMail call.
108
108
asyncMailService.sendMail {
109
109
// Mail parameters
110
110
to 'john.smith@example.com'
111
-
subject 'Test';
112
-
html '<body><u>Test</u></body>';
113
-
attachBytes 'test.txt', 'text/plain', byteBuffer;
111
+
subject 'Test'
112
+
html '<body><u>Test</u></body>'
113
+
attachBytes 'test.txt', 'text/plain', byteBuffer
114
114
115
115
// Additional asynchronous parameters (optional)
116
116
beginDate new Date(System.currentTimeMillis()+60000) // Starts after one minute, default current date
117
117
endDate new Date(System.currentTimeMillis()+3600000) // Must be sent in one hour, default infinity
118
-
maxAttemptsCount 3; // Max 3 attempts to send, default 1
119
-
attemptInterval 300000; // Minimum five minutes between attempts, default 300000 ms
120
-
delete true; // Marks the message for deleting after sent
121
-
immediate true; // Run the send job after the message was created
122
-
priority 10; // If priority is greater then message will be sent faster
118
+
maxAttemptsCount 3 // Max 3 attempts to send, default 1
119
+
attemptInterval 300000 // Minimum five minutes between attempts, default 300000 ms
120
+
delete true // Marks the message for deleting after sent
121
+
immediate true // Run the send job after the message was created
122
+
priority 10 // If priority is greater then message will be sent faster
123
123
}
124
124
```
125
125
126
-
Also see the sample application at <https://github.com/kefirfromperm/grails-asynchronous-mail-sample>.
126
+
Also see the sample application at <https://github.com/kefirfromperm/grails-asynchronous-mail-sample> (Grails 3).
127
127
128
128
The AsynchronousMailController and views
129
129
----------------------------------------
@@ -139,45 +139,31 @@ Logging
139
139
140
140
To enable full logging for the plugin just add the following lines to `/grails-app/conf/logback.groovy`.
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.
156
+
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.
157
157
158
158
Issue tracking
159
159
--------------
160
160
161
-
You can report bugs on [GitHub](https://github.com/kefirfromperm/grails-asynchronous-mail/issues?state=open).
162
-
You also can ask me questions by email [kefirfromperm@gmail.com](mailto:kefirfromperm@gmail.com).
161
+
You can report bugs on [GitHub](https://github.com/gpc/grails-asynchronous-mail/issues?state=open).
162
+
You also can ask questions in the [Grails Community Slack Channels](https://slack.grails.org/).
163
163
Please enable logs and attach them to your issue.
164
164
165
-
Please review this project at [OpenHUB](https://www.openhub.net/p/grails-asynchronous-mail).
166
-
167
165
Contribution
168
166
------------
169
167
170
168
If you want to contribute to the plugin just open a pull request to the repository
0 commit comments