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.
Attach URL instead of file
Moderators: Chris Corbyn, General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Attach URL instead of file
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.
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.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Attach URL instead of file
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.