I'm using PHP SwiftMailer to send emails with attachment.
Everything works if attachment path is relative: 'dirname(FILE) . '/../../../archive/userfiles/invoices/a1d6bf13_Saskaita_137789.pdf'.
But on absolute path: 'http://185.38.166.110/userfiles/invoices/a1d6bf13_Saskaita_137789.pdf' I'm getting a message: Uncaught exception 'Swift_IoException' with message 'Connection to localhost:25 Timed Out'.
Where the problem could be?