Skip to content

Commit

Permalink
fix SMTP attachment alias, #107
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Dec 29, 2015
1 parent 34999f2 commit d3701b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function send($message,$log=TRUE) {
$out.=$message.$eol;
foreach ($this->attachments as $attachment) {
if (is_array($attachment['filename'])) {
list($alias,$file)=each($attachment);
list($alias,$file)=each($attachment['filename']);
$filename=$alias;
$attachment['filename']=$file;
}
Expand Down

0 comments on commit d3701b3

Please sign in to comment.