mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on swift attachments
This commit is contained in:
parent
f3950726dc
commit
5f3efdc5ff
@ -65,10 +65,18 @@ class GmailTransport extends Transport
|
||||
nlog("trying to attach");
|
||||
nlog($child->getContentType());
|
||||
|
||||
// $attachment = (new Swift_Attachment())
|
||||
// ->setFilename('my-file.pdf')
|
||||
// ->setContentType('application/pdf')
|
||||
// ->setBody($data)
|
||||
// ;
|
||||
|
||||
if($child->getContentType() != 'text/plain'){
|
||||
|
||||
$this->gmail->attach(TempFile::filePath($child));
|
||||
nlog($child->getHeaders());
|
||||
|
||||
$this->gmail->attach(TempFile::filePath($child));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user