aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Mail
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-02-20 18:57:56 +0100
committerAnna Larch <anna@nextcloud.com>2023-02-21 14:37:11 +0100
commited708150760505cb3571c9f6fd257d1485f71eb7 (patch)
treeb47d2d820e643ef1bc65c8c8499aed2c759dc52f /lib/public/Mail
parent5fcb55a2a9653575eec1c9d3551d6a887a22b84f (diff)
downloadnextcloud-server-ed708150760505cb3571c9f6fd257d1485f71eb7.tar.gz
nextcloud-server-ed708150760505cb3571c9f6fd257d1485f71eb7.zip
Fix calendar emails to be outlook compatible
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib/public/Mail')
-rw-r--r--lib/public/Mail/IMessage.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Mail/IMessage.php b/lib/public/Mail/IMessage.php
index 35a67bc4bb8..b3cc86839f1 100644
--- a/lib/public/Mail/IMessage.php
+++ b/lib/public/Mail/IMessage.php
@@ -40,6 +40,18 @@ interface IMessage {
public function attach(IAttachment $attachment): IMessage;
/**
+ * Can be used to "attach content inline" as message parts with specific MIME type and encoding.
+ *
+ * @param string $body body of the MIME part
+ * @param string $name the file name
+ * @param string|null $contentType MIME Content-Type (e.g. text/plain or text/calendar)
+ *
+ * @return IMessage
+ * @since 26.0.0
+ */
+ public function attachInline(string $body, string $name, string $contentType = null): IMessage;
+
+ /**
* Set the from address of this message.
*
* If no "From" address is used \OC\Mail\Mailer will use mail_from_address and mail_domain from config.php