well basically i'm trying to send an email with a .jpg attachment. if i comment the attach(), the code works perfectly and i got the email, is there something wrong with the way i use attach() function?
Why not use Fuel's own email package? That doesn't have this problem.
For problems with SwiftMailer you will probably have more luck on their forum?
But my wild guess would be: you're not passing a FQFN to fromPath() but a relative filename. So what you do think the current working path for that method is? And is that file there?
at first i passed parameters with fuel email package
mail(something, something, something) but it works when i don't have the need to attach file. Yes, the file is there in the same folder with the controller.