Don't require @ prefix for attachment filenames

This commit is contained in:
Joshua Chamberlain 2014-09-05 15:07:55 -07:00
parent 7f2fa66030
commit a674addd2a

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)