diff options
author | Joas Schilling <coding@schilljs.com> | 2017-10-18 15:39:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-10-18 15:44:19 +0200 |
commit | ce27e8cf34daea23117a9e5e0134957889aac332 (patch) | |
tree | c48d3cb82055d5fca1eb0f5cd3de466a7b7c477e /lib/public/Mail/IMessage.php | |
parent | cc798fd65f48e4cfc4748f35859c453a6eff4e25 (diff) | |
download | nextcloud-server-ce27e8cf34daea23117a9e5e0134957889aac332.tar.gz nextcloud-server-ce27e8cf34daea23117a9e5e0134957889aac332.zip |
Add attachment support to emails
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Mail/IMessage.php')
-rw-r--r-- | lib/public/Mail/IMessage.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/public/Mail/IMessage.php b/lib/public/Mail/IMessage.php index 20e4ea19c4c..7f061cece05 100644 --- a/lib/public/Mail/IMessage.php +++ b/lib/public/Mail/IMessage.php @@ -22,12 +22,26 @@ namespace OCP\Mail; /** - * Class Message + * Interface IMessage * * @package OCP\Mail * @since 13.0.0 */ interface IMessage { + + /** + * @return IAttachment + * @since 13.0.0 + */ + public function createAttachment(); + + /** + * @param IAttachment $attachment + * @return $this + * @since 13.0.0 + */ + public function attach(IAttachment $attachment); + /** * Set the from address of this message. * |