Skip to content

Commit

Permalink
Merge e8ad6be into eb41d01
Browse files Browse the repository at this point in the history
  • Loading branch information
d4mation committed Oct 27, 2017
2 parents eb41d01 + e8ad6be commit aa26094
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mailer.http.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,14 @@ protected function encode_attachment($data)
return base64_encode($data);
}

protected function read_attachment($path)
protected function read_attachment($data)
{
return file_get_contents($path);
if ( file_exists( $data ) ) {
return file_get_contents($data);
}
else {
return $data;
}
}

public function isMail()
Expand Down

0 comments on commit aa26094

Please sign in to comment.