Add Mail wrapper for public API

This commit is contained in:
Pellaeon Lin 2014-08-29 09:20:46 +00:00
parent 22c3fabd24
commit 94cc528f8b
1 changed files with 36 additions and 0 deletions

36
wrapper/mail.php Normal file
View File

@ -0,0 +1,36 @@
<?php
/**
* ownCloud
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Pellaeon Lin <pellaeon@cnmc.tw>
* @copyright Pellaeon Lin, 2014
*/
namespace OCA\Registration\Wrapper;
class Mail {
/**
* send an email
* @param string $toaddress
* @param string $toname
* @param string $subject
* @param string $mailtext
* @param string $fromaddress
* @param string $fromname
* @param int $html
* @param string $altbody
* @param string $ccaddress
* @param string $ccname
* @param string $bcc
*/
public function sendMail( $toaddress, $toname, $subject, $mailtext, $fromaddress, $fromname,
$html = 0, $altbody = '', $ccaddress = '', $ccname = '', $bcc = '') {
// call the internal mail class
\OCP\Util::sendMail($toaddress, $toname, $subject, $mailtext, $fromaddress, $fromname,
$html, $altbody, $ccaddress, $ccname, $bcc);
}
}