Commit 558d8abc authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

Merge branch 'feature_addFileFromPath' into 'master'

[FEATURE] Allow for adding files from path

See merge request !41
parents e4412a60 beec23cd
......@@ -339,6 +339,20 @@ class MailTemplateService implements SingletonInterface {
return $this;
}
/**
* Allows adding a file from filePath,
* YOU MUST USE setIgnoreMailQueue(TRUE)
* because we CAN NOT guarantee access to the added files
* when sending mails from the Queue, since this allows temporary files etc.
*
* @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);
}
/**
* Set preview markers for the template editor
*
......
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