splitbrain / dokuwiki-plugin-smtp

Send DokuWiki mails via a configured SMTP server
https://www.dokuwiki.org/plugin:smtp
12 stars 13 forks source link

Fix mistake to send email at several recipients #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

When I use this plugin to send Notifications at several recipients, only the first recipient receives the email.

The emails of recipients must not start or end with space(s) otherwise the SMTP instruction "RCPT TO:< my@email.com>" doesn't work.

The list of recipients transmitted to Message class can be composed of email separated by ", " and not only ",". When the list of recipients is splitted thanks to delimiter "," the email can start by space and it must be removed.

I tested this patch with DokuWiki "Detritus"

Signed-off-by: Sébastien Mennetrier smennetrier@voxtok.com