Skip to content

Commit fe06bfb

Browse files
committed
Releasing 1.0.4
2 parents 75b9519 + 4b23ad4 commit fe06bfb

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ composer.phar
66
# composer.lock
77
/composer.lock
88
/set-local-test-env.sh
9+
/nbproject/private/

nbproject/project.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include.path=${php.global.include.path}
2+
php.version=PHP_73
3+
source.encoding=UTF-8
4+
src.dir=.
5+
tags.asp=false
6+
tags.short=false
7+
web.root=.

nbproject/project.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.php.project</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/php-project/1">
6+
<name>php-email</name>
7+
</data>
8+
</configuration>
9+
</project>

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
}

test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Test script
2+
23
composer update
3-
RC=./vendor/phpunit/phpunit/phpunit tests
4-
rm -rf vendor composer.lock
4+
./vendor/phpunit/phpunit/phpunit tests
5+
RC=$?
56
exit $RC
67

0 commit comments

Comments
 (0)