Open GoogleCodeExporter opened 9 years ago
Hi!
I solved this, maybe could be useful for someone..
I added this function to the YiiMailMessage.php:
public function fileAttach($uploadedFile){
$uploadedFileName = $uploadedFile->tempName;
$swiftAttachment = Swift_Attachment::fromPath($uploadedFileName);
return $this->message->attach($swiftAttachment);
}
and just have to call that function to attach the file in the email!
Original comment by di...@kiwity.com
on 19 Dec 2011 at 2:57
still have the problem?
Original comment by jorge.za...@gmail.com
on 19 Jun 2013 at 6:49
Thanks, that fixed this error:
include(Swift_Attachment.php): failed to open stream: No such file or directory
with the code from the above link.
Original comment by u...@sansculotte.net
on 28 May 2014 at 11:06
I have the same problem.
Did you find any solution?
Original comment by igor...@gmail.com
on 2 Jun 2014 at 2:31
Original issue reported on code.google.com by
di...@kiwity.com
on 15 Dec 2011 at 6:03