Page 1 of 1

Attach URL instead of file

Posted: Wed Jan 30, 2008 2:25 am
by alex.barylski
Is this possible?

Ideally I would be ale to do both. Attach a file exclusively as well as just a URL incase attachment size restrictions come into play - not mutually exlusive of course. :P

Re: Attach URL instead of file

Posted: Wed Jan 30, 2008 5:40 am
by Chris Corbyn
I think Swift bails if you use Swift_File due to a file_exists() call. But you can more than definitely use file_get_contents() and pass the string the Swift_Message_Attachment.