 
 diff --git a/Koha/REST/V1/Messaging.pm b/Koha/REST/V1/Messaging.pm
 new file mode 100644
-index 0000000..513a059
+index 0000000..bc5a12b
 --- /dev/null
 +++ b/Koha/REST/V1/Messaging.pm
-@@ -0,0 +1,93 @@
+@@ -0,0 +1,78 @@
 +package Koha::REST::V1::Messaging;
 +
 +# This file is part of Koha.
 +#
 +# Koha is free software; you can redistribute it and/or modify it under the
 +# terms of the GNU General Public License as published by the Free Software
-+# Foundation; either version 3 of the License, or (at your option) any later
-+# version.
++# Foundation; either version 3 of the License, or (at your option) any later version.
 +#
 +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
 +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR

+            'borrowers' => $args->{borrowernumber},
+        },
+        substitute => { 'borrowers.password' => $patron->password },
+	);
+
+    my $mail = _dispatch($letter, $patron, $library);
+    if ($mail) {
+    	return $c->$cb({}, 200);
+	} else {
+		return $c->$cb({error => "Failed sending message"}, 400);
+	}
+
+}
+
+# dispatch letter to patron
+sub _dispatch {
+	my ($letter, $patron, $library) = @_;
+	my $mail = Koha::Email->new();
+    my %dispatcher = $mail->create_message_headers(
+        {
+            to      => $patron->email,
+            from    => $library->branchemail,
+            replyto => $library->branchreplyto,
+            sender  => $library->branchreturnpath,
+            subject => Encode::encode( "UTF-8", "" . $letter->{'title'} ),
+            message => $letter->{'is_html'}
+                        ? "<html><body>"  . Encode::encode( "UTF-8", $letter->{'content'} ) . "</body></html>"
+                        : Encode::encode( "UTF-8", "" . $letter->{'content'} ),
+            contenttype => $letter->{'is_html'}
+                            ? 'text/html; charset="utf-8"'
+                            : 'text/plain; charset="utf-8"',
+        }
+    );
+	my $res = sendmail(%dispatcher);
+    if ($res) {
+		return 1;
+	} else {
+		warn Dumper($res);
+    	return 0;
+	}
+}
+
+1;

+        "200": {
+          "description": "Patron account details sent"
+        },
+        "500": {
+          "description": "Error sending patron account details",
+          "schema": {
+            "$ref": "../definitions.json#/error"
