Skip to content

Commit 498cfa8

Browse files
committed
#5 - mimeType missing in attachment
1 parent 3ba1e7b commit 498cfa8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/TgEmail/Attachment.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,20 @@ class Attachment {
2424

2525
/**
2626
* Constructor.
27-
* @param string $type - the embedding type of this attachment
28-
* @param string $name - the name of the attachment as to be used in email
29-
* @param string $path - the path to the local file
30-
* @param boolean deleteAfterSent - whether to delete the file when the mail was sent
31-
* @param boolean deleteAfterFailed - whether to delete the file when sending of the email failed (requires deleteAfterSent = TRUE)
27+
* @param string $type - the embedding type of this attachment ('default' or 'embedded', use constants ATTACHED/EMBEDDED)
28+
* @param string $name - the name of the attachment as to be used in email
29+
* @param string $cid - the name of the attachment as to be used for reference (usually in HTML img src tags)
30+
* @param string $mimeType - the mime type (image/png, application/pdf, etc)
31+
* @param string $path - the path to the local file
32+
* @param boolean $deleteAfterSent - whether to delete the file when the mail was sent
33+
* @param boolean $deleteAfterFailed - whether to delete the file when sending of the email failed (requires deleteAfterSent = TRUE)
3234
*/
3335
public function __construct($type, $name, $cid, $path, $mimeType, $deleteAfterSent = false, $deleteAfterFailed = false) {
3436
$this->type = $type;
3537
$this->name = $name;
3638
$this->cid = $cid;
3739
$this->path = $path;
40+
$this->mimeType = $mimeType;
3841
$this->deleteAfterSent = $deleteAfterSent;
3942
$this->deleteAfterFailed = $deleteAfterFailed;
4043
}

0 commit comments

Comments
 (0)