D3r1ck01 has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/373414 )

Change subject: Defining Hook and onAlternateUserMailer()
......................................................................


Defining Hook and onAlternateUserMailer()

Hook definition and onAlternateUserMailer() method definition wrapper
to use for sending emails.

Change-Id: I37584979f0f3175e2543c4d33c0cec332b750f08
---
M SendGridHooks.php
1 file changed, 16 insertions(+), 0 deletions(-)

Approvals:
  D3r1ck01: Verified; Looks good to me, approved



diff --git a/SendGridHooks.php b/SendGridHooks.php
index 89b2f7e..49cbd04 100644
--- a/SendGridHooks.php
+++ b/SendGridHooks.php
@@ -23,3 +23,19 @@
  * @ingroup Extensions
 */
 
+class SendGridHooks {
+       /**
+        * Send a mail using SendGrid API
+        *
+        * @param array $headers
+        * @param array $to
+        * @param MailAddress $from
+        * @param string $subject
+        * @param string $body
+        * @return bool
+        * @throws Exception
+        */
+       public static function onAlternateUserMailer( array $headers, array 
$to, MailAddress $from, $subject, $body ) {
+               
+       }
+}
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/373414
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I37584979f0f3175e2543c4d33c0cec332b750f08
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SendGrid
Gerrit-Branch: master
Gerrit-Owner: D3r1ck01 <alangider...@gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangider...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to