Merge pull request #56 from jchamberlain/master

Don't require @ prefix for attachment filenames
This commit is contained in:
Travis Swientek 2014-11-17 17:28:32 -08:00
commit d744b0a809

View File

@ -169,7 +169,6 @@ class MessageBuilder
public function addAttachment($attachmentPath, $attachmentName = null)
{
if (preg_match("/^@/", $attachmentPath)) {
if (isset($this->files["attachment"])) {
$attachment = array(
'filePath' => $attachmentPath,
@ -186,9 +185,6 @@ class MessageBuilder
}
return true;
} else {
throw new InvalidParameter(INVALID_PARAMETER_ATTACHMENT);
}
}
public function addInlineImage($inlineImagePath, $inlineImageName = null)