Commit 4f0a0edf authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[FEATURE] Allow for adding files from path

This feature is only usable if the e-mail will be sind right away,
so set $this->setIgnoreMailQueue(TRUE); otherwise, you need to hand
over a correct File and FileReference
parent 861c703a
......@@ -408,6 +408,18 @@ class MailTemplateService {
return $this;
* Allows adding a file from filePath, only use this Function with
* setIgnoreMailQueue(TRUE)
* @param string $path
* @param string|null $name
* @param string|null $contentType
public function addFileFromFilePathForDirectSending(string $path, string $name = null, string $contentType = null){
$this->mailMessage->attachFromPath($path, $name, $contentType);
* @return MailMessage
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment